Documentation ¶
Index ¶
- Constants
- func Routes(router *httprouter.Router, ds *store.InMemory)
- type Operator
- func (*Operator) Descriptor() ([]byte, []int)
- func (m *Operator) GetAid() string
- func (m *Operator) GetAtoken() string
- func (m *Operator) GetAvatar() string
- func (m *Operator) GetFirstName() string
- func (o *Operator) GetFullName() string
- func (m *Operator) GetLastName() string
- func (m *Operator) GetUid() string
- func (o Operator) Key() string
- func (o Operator) MarshalJSON() ([]byte, error)
- func (*Operator) ProtoMessage()
- func (m *Operator) Reset()
- func (m *Operator) String() string
- func (o *Operator) UnmarshalJSON(data []byte) error
- func (m *Operator) XXX_DiscardUnknown()
- func (m *Operator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Operator) XXX_Merge(src proto.Message)
- func (m *Operator) XXX_Size() int
- func (m *Operator) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( DEBUG string = "DEBUG" INFO string = "INFO" WARNING string = "WARN" ERROR string = "ERROR" FATAL string = "FATAL" )
Log levels
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Operator ¶
type Operator struct { FirstName string `protobuf:"bytes,1,opt,name=firstName,json=first_name,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,2,opt,name=lastName,json=last_name,proto3" json:"lastName,omitempty"` // Access ID and Access Token will be used for enhanced security, // accessing the operator, etc Aid string `protobuf:"bytes,3,opt,name=aid,json=access_id,proto3" json:"aid,omitempty"` Atoken string `protobuf:"bytes,6,opt,name=atoken,json=access_token,proto3" json:"atoken,omitempty"` // Unique identifier Uid string `protobuf:"bytes,4,opt,name=uid,json=id,proto3" json:"uid,omitempty"` // URI to an avatar image, best results it should be 1:1 ratio Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Operator) Descriptor ¶
func (*Operator) GetFirstName ¶
func (*Operator) GetFullName ¶
GetFullName returns the Operator FirstName and LastName concatenated by a space. Implementing the Operator as a Person.
func (*Operator) GetLastName ¶
func (Operator) Key ¶
Key implements the Keyer interface of the Store and returns a string used for storing the Operator in memory.
func (Operator) MarshalJSON ¶
MarshalJSON converts a Operator object into a JSON string returned as a byte array.
func (*Operator) ProtoMessage ¶
func (*Operator) ProtoMessage()
func (*Operator) UnmarshalJSON ¶
UnmarshalJSON converts a JSON string (as a byte array) into a Operator object.
func (*Operator) XXX_DiscardUnknown ¶
func (m *Operator) XXX_DiscardUnknown()
func (*Operator) XXX_Marshal ¶
func (*Operator) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.