Documentation
¶
Index ¶
- Variables
- func CheckErr(err error, check error) bool
- func CheckFieldErr(err error, field, val string) bool
- func GenerateRandomByteArray(length int) []byte
- func GenerateRandomToken(length int) string
- func GetServerVersion() string
- func GetStack(err error) string
- func GetVersion() string
- func GetWebVersion() string
- func NewError(inner string) error
- func NewErrorFields() error
- func NewErrorFrom(err error) error
- func NewErrorf(f string, v ...interface{}) error
- func WrapSkip(err error, skip int) error
- func WriteStringToWriter(w io.Writer, s string) error
- type Error
- func (e *Error) Camo() error
- func (e Error) Empty() bool
- func (e Error) Error() string
- func (e Error) ErrorWithStack() string
- func (e *Error) Inner() error
- func (r Error) MarshalJSON() ([]byte, error)
- func (e *Error) Match(o error) bool
- func (e *Error) MultiStack() *stack.Multi
- func (e *Error) SetErrorOrCamo(err error) error
- func (e *Error) SetFieldError(f, er string)
- type VersionEntry
- type VersionTime
Constants ¶
This section is empty.
Variables ¶
View Source
var BufPool = bufferPool{ sync.Pool{ New: func() interface{} { return bytes.NewBuffer(nil) }, }, }
View Source
var (
ERR_NO_LOGIN = errors.New("No server configuration found. Did you login?")
)
Functions ¶
func CheckFieldErr ¶
func GenerateRandomByteArray ¶
func GenerateRandomToken ¶
func GetServerVersion ¶
func GetServerVersion() string
func GetVersion ¶
func GetVersion() string
func GetWebVersion ¶
func GetWebVersion() string
func NewErrorFields ¶
func NewErrorFields() error
func NewErrorFrom ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (Error) ErrorWithStack ¶
func (Error) MarshalJSON ¶
func (*Error) MultiStack ¶
func (*Error) SetErrorOrCamo ¶
func (*Error) SetFieldError ¶
type VersionEntry ¶
type VersionEntry struct { Commit string `json:"commit"` Date *VersionTime `json:"date"` Behind int `json:"-"` }
func GetVersionInfo ¶
func GetVersionInfo(cid string) (*VersionEntry, error)
type VersionTime ¶
func (*VersionTime) UnmarshalJSON ¶
func (vt *VersionTime) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.