Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthHeaderKey = "X-Auth-Payload" AuthorizationHeaderKey = "Authorization" MpcSigKey = "Signature" TimeoutSecond = 60 )
Variables ¶
This section is empty.
Functions ¶
func GetClientConnection ¶
func GetClientConnection(serviceName string, options ...interface{}) (*grpc.ClientConn, error)
GetClientConnection Get grpc connection client
func Run ¶
func Run(ctx context.Context, cfg *config.HTTPConfig, grpcOpts grpc.ServerOption, grpcFn RegisterFn, gatewayFn GatewayRegisterFn) error
Types ¶
type ClientOptionPort ¶
type ClientOptionPort uint32
func WithClientPortOption ¶
func WithClientPortOption(port uint32) ClientOptionPort
type GatewayRegisterFn ¶
type GatewayRegisterFn func(ctx context.Context, cfg *config.HTTPConfig, mux *runtime.ServeMux, endPoint string, option []grpc.DialOption) error
type RegisterFn ¶
Click to show internal directories.
Click to hide internal directories.