Documentation ¶
Index ¶
- Constants
- func Routes(router *httprouter.Router, ds *store.InMemory)
- type Client
- func (*Client) Descriptor() ([]byte, []int)
- func (m *Client) GetFirstName() string
- func (c *Client) GetFullName() string
- func (m *Client) GetLastName() string
- func (m *Client) GetName() string
- func (m *Client) GetSid() string
- func (m *Client) GetUid() string
- func (c Client) Key() string
- func (c Client) MarshalJSON() ([]byte, error)
- func (*Client) ProtoMessage()
- func (m *Client) Reset()
- func (m *Client) String() string
- func (c *Client) UnmarshalJSON(data []byte) error
- func (m *Client) XXX_DiscardUnknown()
- func (m *Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Client) XXX_Merge(src proto.Message)
- func (m *Client) XXX_Size() int
- func (m *Client) 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 Client ¶
type Client struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,proto3" json:"last_name,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Uid string `protobuf:"bytes,4,opt,name=uid,json=id,proto3" json:"uid,omitempty"` Sid string `protobuf:"bytes,5,opt,name=sid,proto3" json:"sid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Client) Descriptor ¶
func (*Client) GetFirstName ¶
func (*Client) GetFullName ¶
GetFullName returns the Client FirstName and LastName concatenated by a space. Implementing the Client as a Person.
func (*Client) GetLastName ¶
func (Client) Key ¶
Key implements the Keyer interface of the Store and returns a string used for storing the Client in memory.
func (Client) MarshalJSON ¶
MarshalJSON converts a Client object into a JSON string returned as a byte array.
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) UnmarshalJSON ¶
UnmarshalJSON converts a JSON string (as a byte array) into a Client object.
func (*Client) XXX_DiscardUnknown ¶
func (m *Client) XXX_DiscardUnknown()
func (*Client) XXX_Marshal ¶
func (*Client) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.