svc

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL