client io architecture

This commit is contained in:
Ilia Denisov
2026-03-12 18:45:46 +02:00
committed by GitHub
parent 2dafa69b93
commit 079b9facb0
36 changed files with 1810 additions and 460 deletions
+24
View File
@@ -0,0 +1,24 @@
// Package implements "galaxy/connector.Connector" interface with HTTP REST API protocol
package http
import (
"context"
"net/url"
)
type httpConnector struct {
ctx context.Context
backendURL *url.URL // HTTP REST API Server URL
}
func NewHttpConnector(ctx context.Context, backendURL string) (*httpConnector, error) {
u, err := url.Parse(backendURL)
if err != nil {
return nil, err
}
h := &httpConnector{
ctx: ctx,
backendURL: u,
}
return h, nil
}