Documentation ¶
Index ¶
- Constants
- func Log(p string) *logrus.Entry
- func LogErr(entry *logrus.Entry, err error) *logrus.Entry
- func ParseIdFromUrl(r *http.Request, urlToken string) (uid string, ok bool)
- func ParseRequest(w http.ResponseWriter, r *http.Request, data interface{}) bool
- func Reply(w http.ResponseWriter, rep interface{})
- func SetStatus(w http.ResponseWriter, code, msg string)
- func UniqueString(alpha int) string
- type Instruction
- type Its
- type Status
Constants ¶
View Source
const ( E_ERROR = "E_ERROR" E_INVALID_METHOD = "E_INVALID_METHOD" E_INVALID_REQUEST = "E_INVALID_REQUEST" E_INVALID_USER = "E_INVALID_USER" E_MISSING_REQUIRED = "E_MISSING_REQUIRED" E_OK = "E_OK" E_UNAUTHORIZED = "E_UNAUTHORIZED" )
Variables ¶
This section is empty.
Functions ¶
func ParseRequest ¶
func ParseRequest(w http.ResponseWriter, r *http.Request, data interface{}) bool
func Reply ¶
func Reply(w http.ResponseWriter, rep interface{})
func SetStatus ¶
func SetStatus(w http.ResponseWriter, code, msg string)
func UniqueString ¶
Types ¶
type Instruction ¶
type Instruction struct { SubjectId string `json:"subject_id,omitempty"` SubjectType string `json:"subject_type,omitempty"` Predicate string `json:"predicate,omitempty"` Object []byte `json:"object,omitempty"` ObjectId string `json:"object_id,omitempty"` NanoTs int64 `json:"nano_ts,omitempty"` Source string `json:"source,omitempty"` }
func (*Instruction) GobDecode ¶
func (i *Instruction) GobDecode(buf []byte) error
func (*Instruction) GobEncode ¶
func (i *Instruction) GobEncode() ([]byte, error)
type Its ¶
type Its []Instruction
Click to show internal directories.
Click to hide internal directories.