Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
auth.proto
It has these top-level messages:
AuthReply Cookie Token Refresh
Index ¶
- Variables
- type ArgCookie
- type ArgRefreshToken
- type ArgToken
- type AuthReply
- func (*AuthReply) Descriptor() ([]byte, []int)
- func (m *AuthReply) GetCSRF() string
- func (m *AuthReply) GetExpires() int64
- func (m *AuthReply) GetLogin() bool
- func (m *AuthReply) GetMid() int64
- func (m *AuthReply) Marshal() (dAtA []byte, err error)
- func (m *AuthReply) MarshalTo(dAtA []byte) (int, error)
- func (*AuthReply) ProtoMessage()
- func (m *AuthReply) Reset()
- func (m *AuthReply) Size() (n int)
- func (m *AuthReply) String() string
- func (m *AuthReply) Unmarshal(dAtA []byte) error
- type Cookie
- func (*Cookie) Descriptor() ([]byte, []int)
- func (m *Cookie) GetCSRF() string
- func (m *Cookie) GetExpires() int64
- func (m *Cookie) GetMid() int64
- func (m *Cookie) GetSession() string
- func (m *Cookie) GetType() int64
- func (m *Cookie) Marshal() (dAtA []byte, err error)
- func (m *Cookie) MarshalTo(dAtA []byte) (int, error)
- func (*Cookie) ProtoMessage()
- func (m *Cookie) Reset()
- func (m *Cookie) Size() (n int)
- func (m *Cookie) String() string
- func (m *Cookie) Unmarshal(dAtA []byte) error
- type CookieResp
- type Refresh
- func (*Refresh) Descriptor() ([]byte, []int)
- func (m *Refresh) GetAppID() int32
- func (m *Refresh) GetExpires() int64
- func (m *Refresh) GetMid() int64
- func (m *Refresh) GetRefresh() string
- func (m *Refresh) GetToken() string
- func (m *Refresh) Marshal() (dAtA []byte, err error)
- func (m *Refresh) MarshalTo(dAtA []byte) (int, error)
- func (*Refresh) ProtoMessage()
- func (m *Refresh) Reset()
- func (m *Refresh) Size() (n int)
- func (m *Refresh) String() string
- func (m *Refresh) Unmarshal(dAtA []byte) error
- type RefreshTokenResp
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetAppID() int32
- func (m *Token) GetExpires() int64
- func (m *Token) GetMid() int64
- func (m *Token) GetToken() string
- func (m *Token) GetType() int64
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type ArgRefreshToken ¶
ArgRefreshToken rpc refreshToken arg
type AuthReply ¶
type AuthReply struct { // if cookie or token in life time, login is true // else login is false and mid csrf expires is empty Login bool `protobuf:"varint,1,opt,name=Login,proto3" json:"login"` // user identify id Mid int64 `protobuf:"varint,2,opt,name=Mid,proto3" json:"mid"` // use cookie request this field will return // use token request ignore this field CSRF string `protobuf:"bytes,3,opt,name=CSRF,proto3" json:"csrf_token"` // expiration date // unix timestamp Expires int64 `protobuf:"varint,4,opt,name=Expires,proto3" json:"expires"` }
AuthReply auth reply
func (*AuthReply) Descriptor ¶
func (*AuthReply) GetExpires ¶
func (*AuthReply) ProtoMessage ¶
func (*AuthReply) ProtoMessage()
type Cookie ¶
type Cookie struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` Session string `protobuf:"bytes,2,opt,name=Session,proto3" json:"session"` CSRF string `protobuf:"bytes,3,opt,name=CSRF,proto3" json:"csrf"` Type int64 `protobuf:"varint,4,opt,name=Type,proto3" json:"type"` Expires int64 `protobuf:"varint,5,opt,name=Expires,proto3" json:"expires"` }
func (*Cookie) Descriptor ¶
func (*Cookie) GetExpires ¶
func (*Cookie) GetSession ¶
func (*Cookie) ProtoMessage ¶
func (*Cookie) ProtoMessage()
type CookieResp ¶
type CookieResp struct { Mid int64 `json:"mid"` Session string `json:"session"` CSRF string `json:"csrf"` Expires int64 `json:"expires"` }
CookieResp cookie response
type Refresh ¶
type Refresh struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` AppID int32 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"` Refresh string `protobuf:"bytes,3,opt,name=Refresh,proto3" json:"refresh"` Token string `protobuf:"bytes,4,opt,name=Token,proto3" json:"token"` Expires int64 `protobuf:"varint,5,opt,name=Expires,proto3" json:"expires"` }
func (*Refresh) Descriptor ¶
func (*Refresh) GetExpires ¶
func (*Refresh) GetRefresh ¶
func (*Refresh) ProtoMessage ¶
func (*Refresh) ProtoMessage()
type RefreshTokenResp ¶
type RefreshTokenResp struct { Mid int64 `json:"mid"` AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` Expires int64 `json:"expires"` }
RefreshTokenResp refreshToken response
type Token ¶
type Token struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` AppID int32 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"` Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"token"` Type int64 `protobuf:"varint,4,opt,name=Type,proto3" json:"type"` Expires int64 `protobuf:"varint,5,opt,name=Expires,proto3" json:"expires"` }
func (*Token) Descriptor ¶
func (*Token) GetExpires ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.