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
Click to show internal directories.
Click to hide internal directories.