Documentation ¶
Index ¶
- func Init(c ClientConfig, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func InitWithTls(c ClientConfig, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func Run(c ServerConfig, servers ...GrpcServerHandler) error
- func RunWithTls(c ServerConfig, servers ...GrpcServerHandler) error
- func WithClientNoCredentials() grpc.DialOption
- func WithClientTlsCredentials(cre credentials.TransportCredentials) grpc.DialOption
- type ClientConfig
- type GrpcServerHandler
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(c ClientConfig, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func InitWithTls ¶
func InitWithTls(c ClientConfig, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func Run ¶
func Run(c ServerConfig, servers ...GrpcServerHandler) error
func RunWithTls ¶
func RunWithTls(c ServerConfig, servers ...GrpcServerHandler) error
func WithClientNoCredentials ¶
func WithClientNoCredentials() grpc.DialOption
func WithClientTlsCredentials ¶
func WithClientTlsCredentials(cre credentials.TransportCredentials) grpc.DialOption
Types ¶
type ClientConfig ¶
type GrpcServerHandler ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.