account

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

Types

type AccountInfo

type AccountInfo struct {
	AccountId            string   `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Avatar               string   `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender               int32    `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"`
	Mobile               string   `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Email                string   `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
	CountryCode          string   `protobuf:"bytes,7,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	CreateTime           int64    `protobuf:"varint,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountInfo) Descriptor

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

func (*AccountInfo) GetAccountId

func (m *AccountInfo) GetAccountId() string

func (*AccountInfo) GetAvatar

func (m *AccountInfo) GetAvatar() string

func (*AccountInfo) GetCountryCode

func (m *AccountInfo) GetCountryCode() string

func (*AccountInfo) GetCreateTime

func (m *AccountInfo) GetCreateTime() int64

func (*AccountInfo) GetEmail

func (m *AccountInfo) GetEmail() string

func (*AccountInfo) GetGender

func (m *AccountInfo) GetGender() int32

func (*AccountInfo) GetMobile

func (m *AccountInfo) GetMobile() string

func (*AccountInfo) GetName

func (m *AccountInfo) GetName() string

func (*AccountInfo) ProtoMessage

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) Reset

func (m *AccountInfo) Reset()

func (*AccountInfo) String

func (m *AccountInfo) String() string

func (*AccountInfo) XXX_DiscardUnknown

func (m *AccountInfo) XXX_DiscardUnknown()

func (*AccountInfo) XXX_Marshal

func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountInfo) XXX_Merge

func (m *AccountInfo) XXX_Merge(src proto.Message)

func (*AccountInfo) XXX_Size

func (m *AccountInfo) XXX_Size() int

func (*AccountInfo) XXX_Unmarshal

func (m *AccountInfo) XXX_Unmarshal(b []byte) error

type AccountServiceClient

type AccountServiceClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	GetInfoByAccountId(ctx context.Context, in *GetInfoByIdRequest, opts ...grpc.CallOption) (*AccountInfo, error)
}

AccountServiceClient is the client API for AccountService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	GetInfoByAccountId(context.Context, *GetInfoByIdRequest) (*AccountInfo, error)
}

AccountServiceServer is the server API for AccountService service.

type GetInfoByIdRequest

type GetInfoByIdRequest struct {
	AccountId            string   `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetInfoByIdRequest) Descriptor

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

func (*GetInfoByIdRequest) GetAccountId

func (m *GetInfoByIdRequest) GetAccountId() string

func (*GetInfoByIdRequest) ProtoMessage

func (*GetInfoByIdRequest) ProtoMessage()

func (*GetInfoByIdRequest) Reset

func (m *GetInfoByIdRequest) Reset()

func (*GetInfoByIdRequest) String

func (m *GetInfoByIdRequest) String() string

func (*GetInfoByIdRequest) XXX_DiscardUnknown

func (m *GetInfoByIdRequest) XXX_DiscardUnknown()

func (*GetInfoByIdRequest) XXX_Marshal

func (m *GetInfoByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetInfoByIdRequest) XXX_Merge

func (m *GetInfoByIdRequest) XXX_Merge(src proto.Message)

func (*GetInfoByIdRequest) XXX_Size

func (m *GetInfoByIdRequest) XXX_Size() int

func (*GetInfoByIdRequest) XXX_Unmarshal

func (m *GetInfoByIdRequest) XXX_Unmarshal(b []byte) error

type RegisterRequest

type RegisterRequest struct {
	// 用户名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 国际码
	CountryCode string `protobuf:"bytes,2,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// 手机号码
	Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// 密码
	Password             string   `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetCountryCode

func (m *RegisterRequest) GetCountryCode() string

func (*RegisterRequest) GetMobile

func (m *RegisterRequest) GetMobile() string

func (*RegisterRequest) GetName

func (m *RegisterRequest) GetName() string

func (*RegisterRequest) GetPassword

func (m *RegisterRequest) GetPassword() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterRequest) XXX_Merge

func (m *RegisterRequest) XXX_Merge(src proto.Message)

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

func (m *RegisterRequest) XXX_Unmarshal(b []byte) error

type RegisterResponse

type RegisterResponse struct {
	AccountId            string   `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterResponse) Descriptor

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

func (*RegisterResponse) GetAccountId

func (m *RegisterResponse) GetAccountId() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) Reset

func (m *RegisterResponse) Reset()

func (*RegisterResponse) String

func (m *RegisterResponse) String() string

func (*RegisterResponse) XXX_DiscardUnknown

func (m *RegisterResponse) XXX_DiscardUnknown()

func (*RegisterResponse) XXX_Marshal

func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterResponse) XXX_Merge

func (m *RegisterResponse) XXX_Merge(src proto.Message)

func (*RegisterResponse) XXX_Size

func (m *RegisterResponse) XXX_Size() int

func (*RegisterResponse) XXX_Unmarshal

func (m *RegisterResponse) XXX_Unmarshal(b []byte) error

type Sam

type Sam struct {
	// Types that are valid to be assigned to Test:
	//	*Sam_Name
	//	*Sam_A
	Test                 isSam_Test `protobuf_oneof:"test"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

测试使用

func (*Sam) Descriptor

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

func (*Sam) GetA

func (m *Sam) GetA() *AccountInfo

func (*Sam) GetName

func (m *Sam) GetName() string

func (*Sam) GetTest

func (m *Sam) GetTest() isSam_Test

func (*Sam) ProtoMessage

func (*Sam) ProtoMessage()

func (*Sam) Reset

func (m *Sam) Reset()

func (*Sam) String

func (m *Sam) String() string

func (*Sam) XXX_DiscardUnknown

func (m *Sam) XXX_DiscardUnknown()

func (*Sam) XXX_Marshal

func (m *Sam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sam) XXX_Merge

func (m *Sam) XXX_Merge(src proto.Message)

func (*Sam) XXX_OneofWrappers

func (*Sam) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Sam) XXX_Size

func (m *Sam) XXX_Size() int

func (*Sam) XXX_Unmarshal

func (m *Sam) XXX_Unmarshal(b []byte) error

type Sam_A

type Sam_A struct {
	A *AccountInfo `protobuf:"bytes,2,opt,name=a,proto3,oneof"`
}

type Sam_Name

type Sam_Name struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3,oneof"`
}

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServiceServer) GetInfoByAccountId

func (*UnimplementedAccountServiceServer) Register

Jump to

Keyboard shortcuts

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