request

package
v0.0.0-...-87d79fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, r *Request) context.Context

NewContext returns a new context containing the given Request object.

Types

type Request

type Request struct {
	ID         uuid.UUID
	MethodName string
}

Request defines common details of a rpc request.

func FromContext

func FromContext(ctx context.Context) (r *Request, ok bool)

FromContext retrieves the Request object from the given context, if any.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL