Documentation
¶
Index ¶
- type DGateClient
- func (d *DGateClient) BaseUrl() string
- func (d *DGateClient) CreateCollection(svc *spec.Collection) error
- func (d *DGateClient) CreateDocument(doc *spec.Document) error
- func (d *DGateClient) CreateDomain(dm *spec.Domain) error
- func (d *DGateClient) CreateModule(mod *spec.Module) error
- func (d *DGateClient) CreateNamespace(ns *spec.Namespace) error
- func (d *DGateClient) CreateRoute(rt *spec.Route) error
- func (d *DGateClient) CreateService(svc *spec.Service) error
- func (d *DGateClient) DeleteCollection(name, namespace string) error
- func (d *DGateClient) DeleteDocument(id, namespace string) error
- func (d *DGateClient) DeleteDomain(name, namespace string) error
- func (d *DGateClient) DeleteModule(name, namespace string) error
- func (d *DGateClient) DeleteNamespace(name string) error
- func (d *DGateClient) DeleteRoute(name, namespace string) error
- func (d *DGateClient) DeleteService(name, namespace string) error
- func (d *DGateClient) GetCollection(name, namespace string) (*spec.Collection, error)
- func (d *DGateClient) GetDocument(id, namespace string) (*spec.Document, error)
- func (d *DGateClient) GetDomain(name, namespace string) (*spec.Domain, error)
- func (d *DGateClient) GetModule(name, namespace string) (*spec.Module, error)
- func (d *DGateClient) GetNamespace(name string) (*spec.Namespace, error)
- func (d *DGateClient) GetRoute(name, namespace string) (*spec.Route, error)
- func (d *DGateClient) GetService(name, namespace string) (*spec.Service, error)
- func (d *DGateClient) Init(baseUrl string, opts ...Options) error
- func (d *DGateClient) ListCollection() ([]*spec.Collection, error)
- func (d *DGateClient) ListDocument() ([]*spec.Document, error)
- func (d *DGateClient) ListDomain() ([]*spec.Domain, error)
- func (d *DGateClient) ListModule() ([]*spec.Module, error)
- func (d *DGateClient) ListNamespace() ([]*spec.Namespace, error)
- func (d *DGateClient) ListRoute() ([]*spec.Route, error)
- func (d *DGateClient) ListService() ([]*spec.Service, error)
- type ListResponseWrapper
- type M
- type Options
- type ResponseWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DGateClient ¶
type DGateClient struct {
// contains filtered or unexported fields
}
func NewDGateClient ¶
func NewDGateClient(baseUrl string, opts ...Options) (*DGateClient, error)
func (*DGateClient) BaseUrl ¶
func (d *DGateClient) BaseUrl() string
func (*DGateClient) CreateCollection ¶
func (d *DGateClient) CreateCollection(svc *spec.Collection) error
func (*DGateClient) CreateDocument ¶
func (d *DGateClient) CreateDocument(doc *spec.Document) error
func (*DGateClient) CreateDomain ¶
func (d *DGateClient) CreateDomain(dm *spec.Domain) error
func (*DGateClient) CreateModule ¶
func (d *DGateClient) CreateModule(mod *spec.Module) error
func (*DGateClient) CreateNamespace ¶
func (d *DGateClient) CreateNamespace(ns *spec.Namespace) error
func (*DGateClient) CreateRoute ¶
func (d *DGateClient) CreateRoute(rt *spec.Route) error
func (*DGateClient) CreateService ¶
func (d *DGateClient) CreateService(svc *spec.Service) error
func (*DGateClient) DeleteCollection ¶
func (d *DGateClient) DeleteCollection(name, namespace string) error
func (*DGateClient) DeleteDocument ¶
func (d *DGateClient) DeleteDocument(id, namespace string) error
func (*DGateClient) DeleteDomain ¶
func (d *DGateClient) DeleteDomain(name, namespace string) error
func (*DGateClient) DeleteModule ¶
func (d *DGateClient) DeleteModule(name, namespace string) error
func (*DGateClient) DeleteNamespace ¶
func (d *DGateClient) DeleteNamespace(name string) error
func (*DGateClient) DeleteRoute ¶
func (d *DGateClient) DeleteRoute(name, namespace string) error
func (*DGateClient) DeleteService ¶
func (d *DGateClient) DeleteService(name, namespace string) error
func (*DGateClient) GetCollection ¶
func (d *DGateClient) GetCollection(name, namespace string) (*spec.Collection, error)
func (*DGateClient) GetDocument ¶
func (d *DGateClient) GetDocument(id, namespace string) (*spec.Document, error)
func (*DGateClient) GetDomain ¶
func (d *DGateClient) GetDomain(name, namespace string) (*spec.Domain, error)
func (*DGateClient) GetModule ¶
func (d *DGateClient) GetModule(name, namespace string) (*spec.Module, error)
func (*DGateClient) GetNamespace ¶
func (d *DGateClient) GetNamespace(name string) (*spec.Namespace, error)
func (*DGateClient) GetRoute ¶
func (d *DGateClient) GetRoute(name, namespace string) (*spec.Route, error)
func (*DGateClient) GetService ¶
func (d *DGateClient) GetService(name, namespace string) (*spec.Service, error)
func (*DGateClient) ListCollection ¶
func (d *DGateClient) ListCollection() ([]*spec.Collection, error)
func (*DGateClient) ListDocument ¶
func (d *DGateClient) ListDocument() ([]*spec.Document, error)
func (*DGateClient) ListDomain ¶
func (d *DGateClient) ListDomain() ([]*spec.Domain, error)
func (*DGateClient) ListModule ¶
func (d *DGateClient) ListModule() ([]*spec.Module, error)
func (*DGateClient) ListNamespace ¶
func (d *DGateClient) ListNamespace() ([]*spec.Namespace, error)
func (*DGateClient) ListService ¶
func (d *DGateClient) ListService() ([]*spec.Service, error)
type ListResponseWrapper ¶
type Options ¶
type Options func(*DGateClient)
func WithBasicAuth ¶
func WithHttpClient ¶
func WithUserAgent ¶
type ResponseWrapper ¶
Click to show internal directories.
Click to hide internal directories.