proto

package
v2.0.0-alpha1+incompat... Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2015 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package proto provides protocol functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(remoteAddr string) context.Context

NewContext creates a default context satisfying 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