Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
model.proto
It has these top-level messages:
Perm
Index ¶
- Variables
- type AsoAccount
- type BMsg
- type Info
- type OriginAsoAccount
- type OriginMember
- type OriginPerm
- type PMsg
- type Perm
- func (*Perm) Descriptor() ([]byte, []int)
- func (m *Perm) Equals(other *Perm) bool
- func (m *Perm) GetAccessToken() string
- func (m *Perm) GetAppID() int32
- func (m *Perm) GetAppSubID() int32
- func (m *Perm) GetCreateAt() int64
- func (m *Perm) GetExpires() int64
- func (m *Perm) GetMid() int64
- func (m *Perm) GetRefreshToken() string
- func (m *Perm) Marshal() (dAtA []byte, err error)
- func (m *Perm) MarshalTo(dAtA []byte) (int, error)
- func (*Perm) ProtoMessage()
- func (m *Perm) Reset()
- func (m *Perm) Size() (n int)
- func (m *Perm) String() string
- func (m *Perm) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModel = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type AsoAccount ¶
type AsoAccount struct { Mid int64 `json:"mid"` UserID string `json:"userid"` Uname string `json:"uname"` Pwd string `json:"pwd"` Salt string `json:"salt"` Email string `json:"email"` Tel string `json:"tel"` CountryID int64 `json:"country_id"` MobileVerified int8 `json:"mobile_verified"` Isleak int8 `json:"isleak"` Mtime string `json:"mtime"` }
AsoAccount aso account.
type BMsg ¶
type BMsg struct { Action string `json:"action"` Table string `json:"table"` New json.RawMessage `json:"new"` Old json.RawMessage `json:"old"` MTS int64 }
BMsg databus binlog message.
type Info ¶
type Info struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Face string `json:"face"` Email string `json:"email"` Tel string `json:"tel"` }
Info account info.
type OriginAsoAccount ¶
type OriginAsoAccount struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Mtime string `json:"modify_time"` }
OriginAsoAccount origin aso account.
type OriginMember ¶
type OriginMember struct { Mid int64 `json:"mid"` Face string `json:"face"` Mtime string `json:"modify_time"` }
OriginMember origin member.
type OriginPerm ¶
type OriginPerm struct { Mid int64 `json:"mid"` AppID int32 `json:"appid"` AppSubID int32 `json:"app_subid"` AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` CreateAt int64 `json:"create_at"` Expires int64 `json:"expires"` Ctime string `json:"ctime"` Mtime string `json:"mtime"` }
OriginPerm origin token.
type PMsg ¶
type PMsg struct { Action string `json:"action"` Table string `json:"table"` Data *AsoAccount `json:"data"` Flag int `json:"flag"` MTS int64 }
PMsg Push msg
type Perm ¶
type Perm struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` AppID int32 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"` AppSubID int32 `protobuf:"varint,3,opt,name=AppSubID,proto3" json:"app_subid"` AccessToken string `protobuf:"bytes,4,opt,name=AccessToken,proto3" json:"access_token"` RefreshToken string `protobuf:"bytes,5,opt,name=RefreshToken,proto3" json:"refresh_token"` CreateAt int64 `protobuf:"varint,6,opt,name=CreateAt,proto3" json:"create_at"` Expires int64 `protobuf:"varint,7,opt,name=Expires,proto3" json:"expires"` }
Perm token.
func (*Perm) Descriptor ¶
func (*Perm) GetAccessToken ¶
func (*Perm) GetAppSubID ¶
func (*Perm) GetCreateAt ¶
func (*Perm) GetExpires ¶
func (*Perm) GetRefreshToken ¶
func (*Perm) ProtoMessage ¶
func (*Perm) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.