Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StoreToContext ¶
func StoreToContext(ctx context.Context, bctx BlogAPIContext) context.Context
StoreToContext stores the BlogAPIContext in context.Context.
Types ¶
type BlogAPIContext ¶
func FromContext ¶
func FromContext(ctx context.Context) *BlogAPIContext
FromContext returns the BlogAPIContext stored in context.Context.
func New ¶
func New( requestID string, path string, requestType RequestType, requestHeader map[string][]string, requestBody interface{}, ) BlogAPIContext
New returns a new BlogAPIContext.
type RequestType ¶
type RequestType string
const ( RequestTypeGRPC RequestType = "grpc" RequestTypeRest RequestType = "http" RequestTypeGraphQL RequestType = "graphql" )
Click to show internal directories.
Click to hide internal directories.