context

package
v0.0.0-...-d271c08 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2014 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	// GetRemoteAddr returns the client address
	GetRemoteAddr() string
	// GetUsername returns the username for the request
	GetUsername() string
	// HTML returns an HTML representation of this context
	HTML() template.HTML
	// String returns a string representation of this Context
	String() string
	// Deadline returns the deadline of this context
	Deadline() time.Time
}

Context represents the context for SqlQuery RPC calls.

type DummyContext

type DummyContext struct{}

DummyContext is a dummy implementation of Context

func (*DummyContext) Deadline

func (dc *DummyContext) Deadline() time.Time

func (*DummyContext) GetRemoteAddr

func (dc *DummyContext) GetRemoteAddr() string

func (*DummyContext) GetUsername

func (dc *DummyContext) GetUsername() string

func (*DummyContext) HTML

func (dc *DummyContext) HTML() template.HTML

func (*DummyContext) String

func (dc *DummyContext) String() string

Jump to

Keyboard shortcuts

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