clienttoolset

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialGRPC

func DialGRPC(cfg *GRPCClientConfig, opts []grpc.DialOption) (*grpc.ClientConn, error)

func DialGRPCEx added in v0.0.30

func DialGRPCEx(_ context.Context, cfg *GRPCClientConfig, opts []grpc.DialOption) (*grpc.ClientConn, error)

func DialGRpcServerByName

func DialGRpcServerByName(schema, serverName string, cfg *GRPCClientConfig, opts []grpc.DialOption) (*grpc.ClientConn, error)

func RegisterSchemas

func RegisterSchemas(_ context.Context, cfg *RegisterSchemasConfig, logger l.Wrapper) error

Types

type GRPCClientConfig

type GRPCClientConfig struct {
	Target        string                              `yaml:"target" json:"target"`
	TLSConfig     *servicetoolset.GRPCClientTLSConfig `yaml:"tls_config" json:"tls_config"`
	MetaTransKeys []string                            `json:"-" yaml:"-" ignored:"true"`

	KeepAliveTime    time.Duration `json:"keep_alive_time" yaml:"keep_alive_time"`
	KeepAliveTimeout time.Duration `json:"keep_alive_timeout" yaml:"keep_alive_timeout"`
}

type RegisterSchemasConfig

type RegisterSchemasConfig struct {
	Getter  discovery.Getter `json:"-" yaml:"-" ignored:"true"`
	Schemas []string         `yaml:"schemas" json:"schemas"`
}

Jump to

Keyboard shortcuts

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