Documentation ¶
Index ¶
- Constants
- func ConvertToGrpcError(ctx context.Context, error *server.Error) error
- func CreateConnectionOrDie(host string, isTLS bool) *grpc.ClientConn
- func CreateConnectionWithMaxMsgSizeOrDie(host string, isTLS bool, maxMsgSizeInBytes int) *grpc.ClientConn
- func GetAuthBearerTokenFromHeader(ctx context.Context) (string, *server.Error)
- func RunServer(grpcPort, grpcWebPort, corsAllowedHosts string, ...)
- func ValidateGrpcRequest(v validation.Validatable) error
- type RegisterServiceHandler
Constants ¶
View Source
const (
// The key used to insert the method name of the grpc call into context
ContextMethodNameKey = "method"
)
Variables ¶
This section is empty.
Functions ¶
func CreateConnectionOrDie ¶
func CreateConnectionOrDie(host string, isTLS bool) *grpc.ClientConn
func CreateConnectionWithMaxMsgSizeOrDie ¶
func CreateConnectionWithMaxMsgSizeOrDie(host string, isTLS bool, maxMsgSizeInBytes int) *grpc.ClientConn
func RunServer ¶
func RunServer(grpcPort, grpcWebPort, corsAllowedHosts string, handlers ...RegisterServiceHandler)
func ValidateGrpcRequest ¶
func ValidateGrpcRequest(v validation.Validatable) error
Types ¶
type RegisterServiceHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.