account

package
v0.0.0-...-5a4c462 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.account.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _Account_Login_Handler,
		},
		{
			MethodName: "GetAccount",
			Handler:    _Account_GetAccount_Handler,
		},
		{
			MethodName: "RegisterAccount",
			Handler:    _Account_RegisterAccount_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _Account_UpdateAccount_Handler,
		},
		{
			MethodName: "DeleteAccount",
			Handler:    _Account_DeleteAccount_Handler,
		},
		{
			MethodName: "ListAccount",
			Handler:    _Account_ListAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/account/account.proto",
}

Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_account_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountHTTPServer

func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*AccountReply, error)
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*AccountReply, error)
	RegisterAccount(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*AccountReply, error)
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*AccountReply, error)
	DeleteAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*AccountCommonReplay, error)
	ListAccount(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*ListAccountReplay, error)
}

AccountClient is the client API for Account service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountCommonReplay

type AccountCommonReplay struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountCommonReplay) Descriptor deprecated

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

Deprecated: Use AccountCommonReplay.ProtoReflect.Descriptor instead.

func (*AccountCommonReplay) GetCode

func (x *AccountCommonReplay) GetCode() int32

func (*AccountCommonReplay) GetMessage

func (x *AccountCommonReplay) GetMessage() string

func (*AccountCommonReplay) ProtoMessage

func (*AccountCommonReplay) ProtoMessage()

func (*AccountCommonReplay) ProtoReflect

func (x *AccountCommonReplay) ProtoReflect() protoreflect.Message

func (*AccountCommonReplay) Reset

func (x *AccountCommonReplay) Reset()

func (*AccountCommonReplay) String

func (x *AccountCommonReplay) String() string

type AccountHTTPClient

type AccountHTTPClient interface {
	DeleteAccount(ctx context.Context, req *GetAccountRequest, opts ...http.CallOption) (rsp *AccountCommonReplay, err error)
	GetAccount(ctx context.Context, req *GetAccountRequest, opts ...http.CallOption) (rsp *AccountReply, err error)
	ListAccount(ctx context.Context, req *ListAccountRequest, opts ...http.CallOption) (rsp *ListAccountReplay, err error)
	Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *AccountReply, err error)
	RegisterAccount(ctx context.Context, req *RegisterRequest, opts ...http.CallOption) (rsp *AccountReply, err error)
	UpdateAccount(ctx context.Context, req *UpdateAccountRequest, opts ...http.CallOption) (rsp *AccountReply, err error)
}

func NewAccountHTTPClient

func NewAccountHTTPClient(client *http.Client) AccountHTTPClient

type AccountHTTPClientImpl

type AccountHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AccountHTTPClientImpl) DeleteAccount

func (*AccountHTTPClientImpl) GetAccount

func (*AccountHTTPClientImpl) ListAccount

func (*AccountHTTPClientImpl) Login

func (*AccountHTTPClientImpl) RegisterAccount

func (c *AccountHTTPClientImpl) RegisterAccount(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*AccountReply, error)

func (*AccountHTTPClientImpl) UpdateAccount

type AccountInfo

type AccountInfo struct {
	OauthId   string               `protobuf:"bytes,1,opt,name=oauth_id,json=oauthId,proto3" json:"oauth_id,omitempty"`
	GithubId  string               `protobuf:"bytes,2,opt,name=github_id,json=githubId,proto3" json:"github_id,omitempty"`
	Name      string               `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Type      int32                `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
	Phone     string               `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
	ImgUrl    string               `protobuf:"bytes,6,opt,name=img_url,json=imgUrl,proto3" json:"img_url,omitempty"`
	Email     string               `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
	Introduce string               `protobuf:"bytes,8,opt,name=introduce,proto3" json:"introduce,omitempty"`
	Avatar    string               `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Location  string               `protobuf:"bytes,10,opt,name=location,proto3" json:"location,omitempty"`
	Password  string               `protobuf:"bytes,11,opt,name=password,proto3" json:"password,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountInfo) Descriptor deprecated

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

Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.

func (*AccountInfo) GetAvatar

func (x *AccountInfo) GetAvatar() string

func (*AccountInfo) GetCreatedAt

func (x *AccountInfo) GetCreatedAt() *timestamp.Timestamp

func (*AccountInfo) GetEmail

func (x *AccountInfo) GetEmail() string

func (*AccountInfo) GetGithubId

func (x *AccountInfo) GetGithubId() string

func (*AccountInfo) GetImgUrl

func (x *AccountInfo) GetImgUrl() string

func (*AccountInfo) GetIntroduce

func (x *AccountInfo) GetIntroduce() string

func (*AccountInfo) GetLocation

func (x *AccountInfo) GetLocation() string

func (*AccountInfo) GetName

func (x *AccountInfo) GetName() string

func (*AccountInfo) GetOauthId

func (x *AccountInfo) GetOauthId() string

func (*AccountInfo) GetPassword

func (x *AccountInfo) GetPassword() string

func (*AccountInfo) GetPhone

func (x *AccountInfo) GetPhone() string

func (*AccountInfo) GetType

func (x *AccountInfo) GetType() int32

func (*AccountInfo) GetUpdatedAt

func (x *AccountInfo) GetUpdatedAt() *timestamp.Timestamp

func (*AccountInfo) ProtoMessage

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) ProtoReflect

func (x *AccountInfo) ProtoReflect() protoreflect.Message

func (*AccountInfo) Reset

func (x *AccountInfo) Reset()

func (*AccountInfo) String

func (x *AccountInfo) String() string

type AccountReply

type AccountReply struct {
	Code    int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *AccountInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountReply) Descriptor deprecated

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

Deprecated: Use AccountReply.ProtoReflect.Descriptor instead.

func (*AccountReply) GetCode

func (x *AccountReply) GetCode() int32

func (*AccountReply) GetData

func (x *AccountReply) GetData() *AccountInfo

func (*AccountReply) GetMessage

func (x *AccountReply) GetMessage() string

func (*AccountReply) ProtoMessage

func (*AccountReply) ProtoMessage()

func (*AccountReply) ProtoReflect

func (x *AccountReply) ProtoReflect() protoreflect.Message

func (*AccountReply) Reset

func (x *AccountReply) Reset()

func (*AccountReply) String

func (x *AccountReply) String() string

type AccountServer

type AccountServer interface {
	Login(context.Context, *LoginRequest) (*AccountReply, error)
	GetAccount(context.Context, *GetAccountRequest) (*AccountReply, error)
	RegisterAccount(context.Context, *RegisterRequest) (*AccountReply, error)
	UpdateAccount(context.Context, *UpdateAccountRequest) (*AccountReply, error)
	DeleteAccount(context.Context, *GetAccountRequest) (*AccountCommonReplay, error)
	ListAccount(context.Context, *ListAccountRequest) (*ListAccountReplay, error)
	// contains filtered or unexported methods
}

AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility

type GetAccountRequest

type GetAccountRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountRequest) Descriptor deprecated

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

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetId

func (x *GetAccountRequest) GetId() int32

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

func (x *GetAccountRequest) ProtoReflect() protoreflect.Message

func (*GetAccountRequest) Reset

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (x *GetAccountRequest) String() string

type ListAccountReplay

type ListAccountReplay struct {
	Code    int32          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string         `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*AccountInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountReplay) Descriptor deprecated

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

Deprecated: Use ListAccountReplay.ProtoReflect.Descriptor instead.

func (*ListAccountReplay) GetCode

func (x *ListAccountReplay) GetCode() int32

func (*ListAccountReplay) GetData

func (x *ListAccountReplay) GetData() []*AccountInfo

func (*ListAccountReplay) GetMessage

func (x *ListAccountReplay) GetMessage() string

func (*ListAccountReplay) ProtoMessage

func (*ListAccountReplay) ProtoMessage()

func (*ListAccountReplay) ProtoReflect

func (x *ListAccountReplay) ProtoReflect() protoreflect.Message

func (*ListAccountReplay) Reset

func (x *ListAccountReplay) Reset()

func (*ListAccountReplay) String

func (x *ListAccountReplay) String() string

type ListAccountRequest

type ListAccountRequest struct {
	Keyword  string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Page     string `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize string `protobuf:"bytes,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountRequest) Descriptor deprecated

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

Deprecated: Use ListAccountRequest.ProtoReflect.Descriptor instead.

func (*ListAccountRequest) GetKeyword

func (x *ListAccountRequest) GetKeyword() string

func (*ListAccountRequest) GetPage

func (x *ListAccountRequest) GetPage() string

func (*ListAccountRequest) GetPageSize

func (x *ListAccountRequest) GetPageSize() string

func (*ListAccountRequest) ProtoMessage

func (*ListAccountRequest) ProtoMessage()

func (*ListAccountRequest) ProtoReflect

func (x *ListAccountRequest) ProtoReflect() protoreflect.Message

func (*ListAccountRequest) Reset

func (x *ListAccountRequest) Reset()

func (*ListAccountRequest) String

func (x *ListAccountRequest) String() string

type LoginRequest

type LoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type RegisterRequest

type RegisterRequest struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password  string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Phone     string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Email     string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Introduce string `protobuf:"bytes,5,opt,name=introduce,proto3" json:"introduce,omitempty"`
	Type      int32  `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetIntroduce

func (x *RegisterRequest) GetIntroduce() string

func (*RegisterRequest) GetName

func (x *RegisterRequest) GetName() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetPhone

func (x *RegisterRequest) GetPhone() string

func (*RegisterRequest) GetType

func (x *RegisterRequest) GetType() int32

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) DeleteAccount

func (UnimplementedAccountServer) GetAccount

func (UnimplementedAccountServer) ListAccount

func (UnimplementedAccountServer) Login

func (UnimplementedAccountServer) RegisterAccount

func (UnimplementedAccountServer) UpdateAccount

type UnsafeAccountServer

type UnsafeAccountServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.

type UpdateAccountRequest

type UpdateAccountRequest struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Phone     string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Introduce string `protobuf:"bytes,5,opt,name=introduce,proto3" json:"introduce,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest) Descriptor deprecated

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

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) GetIntroduce

func (x *UpdateAccountRequest) GetIntroduce() string

func (*UpdateAccountRequest) GetName

func (x *UpdateAccountRequest) GetName() string

func (*UpdateAccountRequest) GetPhone

func (x *UpdateAccountRequest) GetPhone() string

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect

func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message

func (*UpdateAccountRequest) Reset

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (x *UpdateAccountRequest) String() string

Jump to

Keyboard shortcuts

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