proto

package
v0.0.0-...-2166858 Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(remoteAddr string) context.Context

func RemoteAddr

func RemoteAddr(ctx context.Context) (addr string, ok bool)

RemoteAddr accesses the remote address of the rpcwrap call connection in this context.

func SetUsername

func SetUsername(ctx context.Context, username string) (ok bool)

SetUsername sets the authenticated username associated with the rpcwrap call connection for this context. NOTE: For internal use by the rpcwrap library only. Contexts are supposed to be readonly, and this somewhat circumvents this intent.

func Username

func Username(ctx context.Context) (user string, ok bool)

Username accesses the authenticated username of the rpcwrap call connection in this context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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