Documentation ¶
Index ¶
- func DialGRPC(cfg *GRPCClientConfig, opts []grpc.DialOption) (*grpc.ClientConn, error)
- func DialGRPCEx(ctx context.Context, cfg *GRPCClientConfig, opts []grpc.DialOption) (*grpc.ClientConn, error)
- func DialGRpcServerByName(schema, serverName string, cfg *GRPCClientConfig, opts []grpc.DialOption) (*grpc.ClientConn, error)
- func RegisterSchemas(_ context.Context, cfg *RegisterSchemasConfig, logger l.Wrapper) error
- type GRPCClientConfig
- type RegisterSchemasConfig
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(ctx 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 ¶
Types ¶
type GRPCClientConfig ¶
type GRPCClientConfig struct { Target string `yaml:"target" json:"target"` TLSConfig *servicetoolset.GRPCTlsConfig `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 ¶
Click to show internal directories.
Click to hide internal directories.