sender

package
v0.0.0-...-162f8c7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, user *Info) context.Context

func ServeMuxSetSender

func ServeMuxSetSender(_ context2.Context, request *http.Request) metadata.MD

Types

type Info

type Info struct {
	UserId string `json:"user_id"`
}

func AuthUserInfo

func AuthUserInfo(authKey string) *Info

func GetSenderFromContext

func GetSenderFromContext(ctx context.Context) *Info

func GetSystemUser

func GetSystemUser() *Info

func (*Info) ToJson

func (info *Info) ToJson() string

Jump to

Keyboard shortcuts

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