Documentation
¶
Overview ¶
Package communicator is a system for reading and writing to http responses
Index ¶
- type Communicator
- func (c *Communicator) Error(s ...interface{})
- func (c *Communicator) Errorf(form string, s ...interface{})
- func (c *Communicator) Fail(s ...interface{})
- func (c *Communicator) Failf(form string, s ...interface{})
- func (c *Communicator) OK(s ...interface{})
- func (c *Communicator) OKf(form string, s ...interface{})
- func (c *Communicator) With(d interface{}) *Communicator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Communicator ¶
type Communicator struct {
// contains filtered or unexported fields
}
func New ¶
func New(w http.ResponseWriter) *Communicator
func NewCommunicatorWithCtx ¶
func NewCommunicatorWithCtx(w http.ResponseWriter, ctx interface{}) *Communicator
func (*Communicator) Error ¶
func (c *Communicator) Error(s ...interface{})
func (*Communicator) Errorf ¶
func (c *Communicator) Errorf(form string, s ...interface{})
func (*Communicator) Fail ¶
func (c *Communicator) Fail(s ...interface{})
func (*Communicator) Failf ¶
func (c *Communicator) Failf(form string, s ...interface{})
func (*Communicator) OK ¶
func (c *Communicator) OK(s ...interface{})
func (*Communicator) OKf ¶
func (c *Communicator) OKf(form string, s ...interface{})
func (*Communicator) With ¶
func (c *Communicator) With(d interface{}) *Communicator
Click to show internal directories.
Click to hide internal directories.