Documentation
¶
Index ¶
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetClaims() map[string]string
- func (m *Token) GetExpires() uint64
- func (m *Token) GetId() string
- func (m *Token) GetKey() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct {
// unique id of token
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// unix timestamp
Expires uint64 `protobuf:"varint,2,opt,name=expires,proto3" json:"expires,omitempty"`
// various values
Claims map[string]string `` /* 153-byte string literal not displayed */
// encrypted key
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Token is for auth
func (*Token) Descriptor ¶
func (*Token) GetExpires ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.