Documentation ¶
Index ¶
- Constants
- Variables
- func ContextWithUTMFromMetadata(parentCtx context.Context, md metadata.MD) context.Context
- func Dial(addr string) (*grpc.ClientConn, error)deprecated
- func DialContext(_ context.Context, addr string) (*grpc.ClientConn, error)deprecated
- func EncodeContextWithUTMData(parentCtx context.Context) context.Context
- func ListenAndServe(gs *grpc.Server) error
- func Listener() (net.Listener, error)
- func NewClient(addr string) (*grpc.ClientConn, error)
- func Server(ab AuthBackend) *grpc.Server
- type AuthBackend
- type Config
Constants ¶
View Source
const ( MetadataKeyBearerToken = "bearer_token" MetadataKeyContentType = "content-type" MetadataKeyExternalDependencies = "external_dependencies" MetadataKeyLocale = "locale" MetadataKeyRequestID = "req_id" )
Variables ¶
View Source
var InternalServerError = errors.New("internal server error")
Functions ¶
func ContextWithUTMFromMetadata ¶ added in v0.2.7
func Dial
deprecated
func Dial(addr string) (*grpc.ClientConn, error)
Deprecated: Use NewClient instead.
func DialContext
deprecated
func EncodeContextWithUTMData ¶ added in v0.2.7
func ListenAndServe ¶
func Server ¶
func Server(ab AuthBackend) *grpc.Server
Types ¶
type AuthBackend ¶
Click to show internal directories.
Click to hide internal directories.