callinfo

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: 4 Imported by: 0

Documentation

Overview

Package callinfo extracts RPC call information from context objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRenderer

func RegisterRenderer(r Renderer)

Types

type CallInfo

type CallInfo interface {
	// The remote address information for this rpc call.
	RemoteAddr() string

	// The username associated with this rpc call, if any.
	Username() string

	// A string identifying this rpc call connection as specifically as possible.
	String() string

	// An HTML representation of this rpc call connection.
	HTML() template.HTML
}

func FromContext

func FromContext(ctx context.Context) CallInfo

type Renderer

type Renderer func(context.Context) (info CallInfo, ok bool)

Jump to

Keyboard shortcuts

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