Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceContext ¶
type ServiceContext struct { GRPCAddr string `json:"grpc_addr"` HTTPAddr string `json:"http_addr"` TenantID string `json:"tenant_id"` APIKey string `json:"api_key"` Token string `json:"token"` CACert string `json:"ca_cert"` Insecure bool `json:"insecure"` }
func FromReader ¶
func FromReader(r io.Reader) (*ServiceContext, error)
func (*ServiceContext) ConnectionOpts ¶
func (sc *ServiceContext) ConnectionOpts() []client.ConnectionOption
func (*ServiceContext) GRPC ¶
func (sc *ServiceContext) GRPC() *url.URL
func (*ServiceContext) HTTP ¶
func (sc *ServiceContext) HTTP() *url.URL
func (*ServiceContext) Validate ¶
func (sc *ServiceContext) Validate() error
Click to show internal directories.
Click to hide internal directories.