Documentation ¶
Index ¶
- func GRPCClient(ctx context.Context, cfg GRPCClientConfig) (*grpc.ClientConn, error)
- func GRPCServer(ctx context.Context, cfg GRPCServerConfig) *grpc.Server
- func GinServer(ctx context.Context) *gin.Engine
- func ListenAndServeHTTP(ctx context.Context, cfg HTTPServerConfig, handler http.Handler) error
- func ListenAndServeNFS(ctx context.Context, cfg NFSServerConfig, fs afero.Fs) error
- func TranslateHeadersToMetadata() gin.HandlerFunc
- type GRPCClientConfig
- type GRPCServerConfig
- type HTTPServerConfig
- type NFSServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCClient ¶
func GRPCClient(ctx context.Context, cfg GRPCClientConfig) (*grpc.ClientConn, error)
func GRPCServer ¶
func GRPCServer(ctx context.Context, cfg GRPCServerConfig) *grpc.Server
func ListenAndServeHTTP ¶
func ListenAndServeNFS ¶
func TranslateHeadersToMetadata ¶
func TranslateHeadersToMetadata() gin.HandlerFunc
TranslateHeadersToMetadata provides a gin handler that will copy Headers from an HTTP request to gRPC headers.
Types ¶
type GRPCClientConfig ¶
type GRPCServerConfig ¶
type HTTPServerConfig ¶
type NFSServerConfig ¶
Click to show internal directories.
Click to hide internal directories.