Documentation ¶
Index ¶
- func NewCallOption(opts ...CallOption) []grpc.CallOption
- func NewDialOption(opts ...DialOptionFunc) []grpc.DialOption
- func NewServerOption(opts ...ServerOptionFunc) []grpc.ServerOption
- func RegisterGateway(ctx context.Context, endpoint string, registers []RegisterMux) (handler http.Handler, err error)
- func RegisterTools(s *grpc.Server)
- type CallOption
- type CallOptionFunc
- type DialOption
- type DialOptionFunc
- type RegisterGRPC
- type RegisterMux
- type ServerOption
- type ServerOptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallOption ¶
func NewCallOption(opts ...CallOption) []grpc.CallOption
func NewDialOption ¶
func NewDialOption(opts ...DialOptionFunc) []grpc.DialOption
func NewServerOption ¶
func NewServerOption(opts ...ServerOptionFunc) []grpc.ServerOption
func RegisterGateway ¶ added in v1.0.1
func RegisterGateway(ctx context.Context, endpoint string, registers []RegisterMux) (handler http.Handler, err error)
RegisterGateway generate grpc-gateway mux http.Handler
Types ¶
type CallOption ¶
type CallOption struct{}
type CallOptionFunc ¶
type CallOptionFunc func(*CallOption)
type DialOption ¶
type DialOption struct {
// contains filtered or unexported fields
}
type DialOptionFunc ¶
type DialOptionFunc func(*DialOption)
func DialOptionResolver ¶ added in v1.0.3
func DialOptionResolver(r resolver.Builder) DialOptionFunc
type RegisterGRPC ¶
type RegisterMux ¶
type ServerOption ¶
type ServerOption struct {
// contains filtered or unexported fields
}
type ServerOptionFunc ¶
type ServerOptionFunc func(*ServerOption)
func ServerOptionLogger ¶
func ServerOptionLogger(l logger.Logger) ServerOptionFunc
Click to show internal directories.
Click to hide internal directories.