Documentation ¶
Index ¶
- Constants
- type ClientWrapper
- type LocalClient
- type MultiWebClient
- type WebClient
- func (c WebClient) Call(ctx context.Context, req client.Request, rsp interface{}, ...) error
- func (c WebClient) GetService(name string) (*registry.Service, error)
- func (c WebClient) Init(...client.Option) error
- func (c WebClient) ListServices() ([]*registry.Service, error)
- func (c WebClient) NewMessage(topic string, msg interface{}, opts ...client.MessageOption) client.Message
- func (c WebClient) NewRequest(service, endpoint string, req interface{}, reqOpts ...client.RequestOption) client.Request
- func (c WebClient) Options() client.Options
- func (c WebClient) Publish(_ context.Context, _ client.Message, _ ...client.PublishOption) error
- func (c WebClient) Stream(_ context.Context, _ client.Request, _ ...client.CallOption) (client.Stream, error)
- func (c WebClient) String() string
Constants ¶
View Source
const EnvLocal = "local"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func (LocalClient) Call ¶
func (c LocalClient) Call(ctx context.Context, env, service, endpoint string, body map[string]interface{}, response *json.RawMessage) error
func (LocalClient) GetService ¶
func (c LocalClient) GetService(env, name string) (*registry.Service, error)
func (LocalClient) ListEnvs ¶
func (c LocalClient) ListEnvs() []string
func (LocalClient) ListServices ¶
func (c LocalClient) ListServices(env string) ([]*registry.Service, error)
type MultiWebClient ¶
type MultiWebClient struct {
// contains filtered or unexported fields
}
func NewMultiWebClient ¶
func NewMultiWebClient(envs map[string]string) MultiWebClient
func (MultiWebClient) Call ¶
func (c MultiWebClient) Call(ctx context.Context, env, service, endpoint string, body map[string]interface{}, response *json.RawMessage) error
func (MultiWebClient) GetService ¶
func (c MultiWebClient) GetService(env, name string) (*registry.Service, error)
func (MultiWebClient) ListEnvs ¶
func (c MultiWebClient) ListEnvs() []string
func (MultiWebClient) ListServices ¶
func (c MultiWebClient) ListServices(env string) ([]*registry.Service, error)
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
func NewWebClient ¶
func (WebClient) NewMessage ¶
func (WebClient) NewRequest ¶
Click to show internal directories.
Click to hide internal directories.