pb

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "account.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "signIn",
			Handler:    _Account_SignIn_Handler,
		},
		{
			MethodName: "setPassword",
			Handler:    _Account_SetPassword_Handler,
		},
		{
			MethodName: "sendVerifyCode",
			Handler:    _Account_SendVerifyCode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error)
	SetPassword(ctx context.Context, in *SetPasswordReq, opts ...grpc.CallOption) (*SetPasswordResp, error)
	SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, 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 AccountServer

type AccountServer interface {
	SignIn(context.Context, *SignInReq) (*SignInResp, error)
	SetPassword(context.Context, *SetPasswordReq) (*SetPasswordResp, error)
	SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error)
	// contains filtered or unexported methods
}

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

type SendVerifyCodeReq

type SendVerifyCodeReq struct {
	AuthType  string `protobuf:"bytes,1,opt,name=authType,proto3" json:"authType,omitempty"`
	AuthValue string `protobuf:"bytes,2,opt,name=authValue,proto3" json:"authValue,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerifyCodeReq) Descriptor deprecated

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

Deprecated: Use SendVerifyCodeReq.ProtoReflect.Descriptor instead.

func (*SendVerifyCodeReq) GetAuthType

func (x *SendVerifyCodeReq) GetAuthType() string

func (*SendVerifyCodeReq) GetAuthValue

func (x *SendVerifyCodeReq) GetAuthValue() string

func (*SendVerifyCodeReq) ProtoMessage

func (*SendVerifyCodeReq) ProtoMessage()

func (*SendVerifyCodeReq) ProtoReflect

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

func (*SendVerifyCodeReq) Reset

func (x *SendVerifyCodeReq) Reset()

func (*SendVerifyCodeReq) String

func (x *SendVerifyCodeReq) String() string

type SendVerifyCodeResp

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

func (*SendVerifyCodeResp) Descriptor deprecated

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

Deprecated: Use SendVerifyCodeResp.ProtoReflect.Descriptor instead.

func (*SendVerifyCodeResp) ProtoMessage

func (*SendVerifyCodeResp) ProtoMessage()

func (*SendVerifyCodeResp) ProtoReflect

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

func (*SendVerifyCodeResp) Reset

func (x *SendVerifyCodeResp) Reset()

func (*SendVerifyCodeResp) String

func (x *SendVerifyCodeResp) String() string

type SetPasswordReq

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

func (*SetPasswordReq) Descriptor deprecated

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

Deprecated: Use SetPasswordReq.ProtoReflect.Descriptor instead.

func (*SetPasswordReq) GetPassword

func (x *SetPasswordReq) GetPassword() string

func (*SetPasswordReq) GetUserId

func (x *SetPasswordReq) GetUserId() string

func (*SetPasswordReq) ProtoMessage

func (*SetPasswordReq) ProtoMessage()

func (*SetPasswordReq) ProtoReflect

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

func (*SetPasswordReq) Reset

func (x *SetPasswordReq) Reset()

func (*SetPasswordReq) String

func (x *SetPasswordReq) String() string

type SetPasswordResp

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

func (*SetPasswordResp) Descriptor deprecated

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

Deprecated: Use SetPasswordResp.ProtoReflect.Descriptor instead.

func (*SetPasswordResp) ProtoMessage

func (*SetPasswordResp) ProtoMessage()

func (*SetPasswordResp) ProtoReflect

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

func (*SetPasswordResp) Reset

func (x *SetPasswordResp) Reset()

func (*SetPasswordResp) String

func (x *SetPasswordResp) String() string

type SignInReq

type SignInReq struct {
	AuthType string   `protobuf:"bytes,1,opt,name=authType,proto3" json:"authType,omitempty"`
	AuthId   string   `protobuf:"bytes,2,opt,name=authId,proto3" json:"authId,omitempty"`
	Password string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Params   []string `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInReq) Descriptor deprecated

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

Deprecated: Use SignInReq.ProtoReflect.Descriptor instead.

func (*SignInReq) GetAuthId

func (x *SignInReq) GetAuthId() string

func (*SignInReq) GetAuthType

func (x *SignInReq) GetAuthType() string

func (*SignInReq) GetParams

func (x *SignInReq) GetParams() []string

func (*SignInReq) GetPassword

func (x *SignInReq) GetPassword() string

func (*SignInReq) ProtoMessage

func (*SignInReq) ProtoMessage()

func (*SignInReq) ProtoReflect

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

func (*SignInReq) Reset

func (x *SignInReq) Reset()

func (*SignInReq) String

func (x *SignInReq) String() string

type SignInResp

type SignInResp struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInResp) Descriptor deprecated

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

Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.

func (*SignInResp) GetUserId

func (x *SignInResp) GetUserId() string

func (*SignInResp) ProtoMessage

func (*SignInResp) ProtoMessage()

func (*SignInResp) ProtoReflect

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

func (*SignInResp) Reset

func (x *SignInResp) Reset()

func (*SignInResp) String

func (x *SignInResp) String() string

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) SendVerifyCode

func (UnimplementedAccountServer) SetPassword

func (UnimplementedAccountServer) SignIn

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.

Jump to

Keyboard shortcuts

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