Documentation ¶
Overview ¶
Package service implements the functions, types, and interfaces for the module.
Package service implements the functions, types, and interfaces for the module.
Package service implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- Variables
- func NewClientTLSConfig(cfg *configv1.TLSConfig, opts ...TLSOption) (*tls.Config, error)
- func NewServerTLSConfig(cfg *configv1.TLSConfig, opts ...TLSOption) (*tls.Config, error)
- type GRPCClient
- type GRPCClientOption
- type GRPCServer
- type GRPCServerOption
- type HTTPClient
- type HTTPClientOption
- type HTTPServer
- type HTTPServerOption
- type RegisterGRPCClient
- type RegisterGRPCServer
- type RegisterHTTPClient
- type RegisterHTTPServer
- type TLSOption
Constants ¶
View Source
const DefaultTimeout = 5 * time.Second
Variables ¶
View Source
var DefaultServiceBuilder = &serviceBuilder{}
DefaultServiceBuilder is the default instance of the service builder.
Functions ¶
func NewClientTLSConfig ¶
Types ¶
type GRPCClientOption ¶ added in v0.0.4
type GRPCClientOption = transgrpc.ClientOption
GRPCClientOption define the gRPC client options
type GRPCServerOption ¶ added in v0.0.4
type GRPCServerOption = transgrpc.ServerOption
GRPCServerOption define the gRPC server options
type HTTPClientOption ¶ added in v0.0.4
type HTTPClientOption = transhttp.ClientOption
HTTPClientOption define the HTTP client options
type HTTPServerOption ¶ added in v0.0.4
type HTTPServerOption = transhttp.ServerOption
HTTPServerOption define the HTTP server options
type RegisterGRPCClient ¶ added in v0.0.3
type RegisterGRPCClient = func(c *GRPCClient)
RegisterGRPCClient register a gRPC client
type RegisterGRPCServer ¶ added in v0.0.3
type RegisterGRPCServer = func(s *GRPCServer)
RegisterGRPCServer register a gRPC server
type RegisterHTTPClient ¶ added in v0.0.3
type RegisterHTTPClient = func(c *HTTPClient)
RegisterHTTPClient register a HTTP client
type RegisterHTTPServer ¶ added in v0.0.3
type RegisterHTTPServer = func(s *HTTPServer)
RegisterHTTPServer register a HTTP server
Directories ¶
Path | Synopsis |
---|---|
Package grpc implements the functions, types, and interfaces for the module.
|
Package grpc implements the functions, types, and interfaces for the module. |
Package http implements the functions, types, and interfaces for the module.
|
Package http implements the functions, types, and interfaces for the module. |
Package service implements the functions, types, and interfaces for the module.
|
Package service implements the functions, types, and interfaces for the module. |
Click to show internal directories.
Click to hide internal directories.