pb

package
v0.0.0-...-9be9f3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 5 Imported by: 4

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

UserInfo
UserId

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type UserClient

type UserClient interface {
	GetUserInfo(ctx context.Context, in *UserId, opts ...grpc.CallOption) (*UserInfo, error)
}

func NewUserClient

func NewUserClient(cc *grpc.ClientConn) UserClient

type UserId

type UserId struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"`
}

func (*UserId) Descriptor

func (*UserId) Descriptor() ([]byte, []int)

func (*UserId) GetUid

func (m *UserId) GetUid() int64

func (*UserId) ProtoMessage

func (*UserId) ProtoMessage()

func (*UserId) Reset

func (m *UserId) Reset()

func (*UserId) String

func (m *UserId) String() string

type UserInfo

type UserInfo struct {
	Uid         int64            `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"`
	Unionid     string           `protobuf:"bytes,2,opt,name=unionid" json:"unionid,omitempty"`
	Uuid        string           `protobuf:"bytes,3,opt,name=uuid" json:"uuid,omitempty"`
	Username    string           `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"`
	Password    string           `protobuf:"bytes,5,opt,name=password" json:"password,omitempty"`
	Nick        string           `protobuf:"bytes,6,opt,name=nick" json:"nick,omitempty"`
	Gender      bool             `protobuf:"varint,7,opt,name=gender" json:"gender,omitempty"`
	Addr        string           `protobuf:"bytes,8,opt,name=addr" json:"addr,omitempty"`
	Avatar      string           `protobuf:"bytes,9,opt,name=avatar" json:"avatar,omitempty"`
	Isguest     bool             `protobuf:"varint,10,opt,name=isguest" json:"isguest,omitempty"`
	Condays     int32            `protobuf:"varint,11,opt,name=condays" json:"condays,omitempty"`
	Signdate    int64            `protobuf:"varint,12,opt,name=signdate" json:"signdate,omitempty"`
	Vipsigndate int64            `protobuf:"varint,13,opt,name=vipsigndate" json:"vipsigndate,omitempty"`
	Status      bool             `protobuf:"varint,14,opt,name=status" json:"status,omitempty"`
	Mtime       int64            `protobuf:"varint,15,opt,name=mtime" json:"mtime,omitempty"`
	Ctime       int64            `protobuf:"varint,16,opt,name=ctime" json:"ctime,omitempty"`
	Token       string           `protobuf:"bytes,17,opt,name=token" json:"token,omitempty"`
	Bankpwd     string           `protobuf:"bytes,18,opt,name=bankpwd" json:"bankpwd,omitempty"`
	Forbid      string           `protobuf:"bytes,19,opt,name=forbid" json:"forbid,omitempty"`
	Imsi        string           `protobuf:"bytes,20,opt,name=imsi" json:"imsi,omitempty"`
	Imei        string           `protobuf:"bytes,21,opt,name=imei" json:"imei,omitempty"`
	Mac         string           `protobuf:"bytes,22,opt,name=mac" json:"mac,omitempty"`
	Did         string           `protobuf:"bytes,23,opt,name=did" json:"did,omitempty"`
	Psystem     string           `protobuf:"bytes,24,opt,name=psystem" json:"psystem,omitempty"`
	Pmodel      string           `protobuf:"bytes,25,opt,name=pmodel" json:"pmodel,omitempty"`
	Others      map[string]int32 `` /* 134-byte string literal not displayed */
	Coin        int64            `protobuf:"varint,27,opt,name=coin" json:"coin,omitempty"`
	Gem         int32            `protobuf:"varint,28,opt,name=gem" json:"gem,omitempty"`
	Bank        int64            `protobuf:"varint,29,opt,name=bank" json:"bank,omitempty"`
	Growth      int32            `protobuf:"varint,30,opt,name=growth" json:"growth,omitempty"`
	Level       int32            `protobuf:"varint,31,opt,name=level" json:"level,omitempty"`
	Viptype     int32            `protobuf:"varint,32,opt,name=viptype" json:"viptype,omitempty"`
	Vipexpiry   int64            `protobuf:"varint,33,opt,name=vipexpiry" json:"vipexpiry,omitempty"`
	Voucher     int32            `protobuf:"varint,34,opt,name=voucher" json:"voucher,omitempty"`
	Online      int32            `protobuf:"varint,35,opt,name=online" json:"online,omitempty"`
	Props       map[string]int32 `` /* 132-byte string literal not displayed */
	Gifts       map[string]int32 `` /* 132-byte string literal not displayed */
	Medals      map[string]int32 `` /* 134-byte string literal not displayed */
	Friends     []int64          `protobuf:"varint,39,rep,packed,name=friends" json:"friends,omitempty"`
	Tags        []string         `protobuf:"bytes,40,rep,name=tags" json:"tags,omitempty"`
	Records     map[string]int32 `` /* 136-byte string literal not displayed */
	Err         string           `protobuf:"bytes,99,opt,name=err" json:"err,omitempty"`
}

func (*UserInfo) Descriptor

func (*UserInfo) Descriptor() ([]byte, []int)

func (*UserInfo) GetAddr

func (m *UserInfo) GetAddr() string

func (*UserInfo) GetAvatar

func (m *UserInfo) GetAvatar() string

func (*UserInfo) GetBank

func (m *UserInfo) GetBank() int64

func (*UserInfo) GetBankpwd

func (m *UserInfo) GetBankpwd() string

func (*UserInfo) GetCoin

func (m *UserInfo) GetCoin() int64

func (*UserInfo) GetCondays

func (m *UserInfo) GetCondays() int32

func (*UserInfo) GetCtime

func (m *UserInfo) GetCtime() int64

func (*UserInfo) GetDid

func (m *UserInfo) GetDid() string

func (*UserInfo) GetErr

func (m *UserInfo) GetErr() string

func (*UserInfo) GetForbid

func (m *UserInfo) GetForbid() string

func (*UserInfo) GetFriends

func (m *UserInfo) GetFriends() []int64

func (*UserInfo) GetGem

func (m *UserInfo) GetGem() int32

func (*UserInfo) GetGender

func (m *UserInfo) GetGender() bool

func (*UserInfo) GetGifts

func (m *UserInfo) GetGifts() map[string]int32

func (*UserInfo) GetGrowth

func (m *UserInfo) GetGrowth() int32

func (*UserInfo) GetImei

func (m *UserInfo) GetImei() string

func (*UserInfo) GetImsi

func (m *UserInfo) GetImsi() string

func (*UserInfo) GetIsguest

func (m *UserInfo) GetIsguest() bool

func (*UserInfo) GetLevel

func (m *UserInfo) GetLevel() int32

func (*UserInfo) GetMac

func (m *UserInfo) GetMac() string

func (*UserInfo) GetMedals

func (m *UserInfo) GetMedals() map[string]int32

func (*UserInfo) GetMtime

func (m *UserInfo) GetMtime() int64

func (*UserInfo) GetNick

func (m *UserInfo) GetNick() string

func (*UserInfo) GetOnline

func (m *UserInfo) GetOnline() int32

func (*UserInfo) GetOthers

func (m *UserInfo) GetOthers() map[string]int32

func (*UserInfo) GetPassword

func (m *UserInfo) GetPassword() string

func (*UserInfo) GetPmodel

func (m *UserInfo) GetPmodel() string

func (*UserInfo) GetProps

func (m *UserInfo) GetProps() map[string]int32

func (*UserInfo) GetPsystem

func (m *UserInfo) GetPsystem() string

func (*UserInfo) GetRecords

func (m *UserInfo) GetRecords() map[string]int32

func (*UserInfo) GetSigndate

func (m *UserInfo) GetSigndate() int64

func (*UserInfo) GetStatus

func (m *UserInfo) GetStatus() bool

func (*UserInfo) GetTags

func (m *UserInfo) GetTags() []string

func (*UserInfo) GetToken

func (m *UserInfo) GetToken() string

func (*UserInfo) GetUid

func (m *UserInfo) GetUid() int64

func (*UserInfo) GetUnionid

func (m *UserInfo) GetUnionid() string

func (*UserInfo) GetUsername

func (m *UserInfo) GetUsername() string

func (*UserInfo) GetUuid

func (m *UserInfo) GetUuid() string

func (*UserInfo) GetVipexpiry

func (m *UserInfo) GetVipexpiry() int64

func (*UserInfo) GetVipsigndate

func (m *UserInfo) GetVipsigndate() int64

func (*UserInfo) GetViptype

func (m *UserInfo) GetViptype() int32

func (*UserInfo) GetVoucher

func (m *UserInfo) GetVoucher() int32

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

type UserServer

type UserServer interface {
	GetUserInfo(context.Context, *UserId) (*UserInfo, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL