account

package
v0.0.0-...-96b78a5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT 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: "Signup",
			Handler:    _Account_Signup_Handler,
		},
		{
			MethodName: "Signin",
			Handler:    _Account_Signin_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 {
	Signup(ctx context.Context, in *SignupRequest, opts ...grpc.CallOption) (*SignupReply, error)
	Signin(ctx context.Context, in *SigninRequest, opts ...grpc.CallOption) (*SigninReply, 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 {
	Signup(context.Context, *SignupRequest) (*SignupReply, error)
	Signin(context.Context, *SigninRequest) (*SigninReply, error)
	// contains filtered or unexported methods
}

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

type SigninReply

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

func (*SigninReply) Descriptor deprecated

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

Deprecated: Use SigninReply.ProtoReflect.Descriptor instead.

func (*SigninReply) GetToken

func (x *SigninReply) GetToken() string

func (*SigninReply) ProtoMessage

func (*SigninReply) ProtoMessage()

func (*SigninReply) ProtoReflect

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

func (*SigninReply) Reset

func (x *SigninReply) Reset()

func (*SigninReply) String

func (x *SigninReply) String() string

type SigninRequest

type SigninRequest 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"`
	// contains filtered or unexported fields
}

func (*SigninRequest) Descriptor deprecated

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

Deprecated: Use SigninRequest.ProtoReflect.Descriptor instead.

func (*SigninRequest) GetName

func (x *SigninRequest) GetName() string

func (*SigninRequest) GetPassword

func (x *SigninRequest) GetPassword() string

func (*SigninRequest) ProtoMessage

func (*SigninRequest) ProtoMessage()

func (*SigninRequest) ProtoReflect

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

func (*SigninRequest) Reset

func (x *SigninRequest) Reset()

func (*SigninRequest) String

func (x *SigninRequest) String() string

type SignupReply

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

func (*SignupReply) Descriptor deprecated

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

Deprecated: Use SignupReply.ProtoReflect.Descriptor instead.

func (*SignupReply) GetToken

func (x *SignupReply) GetToken() string

func (*SignupReply) ProtoMessage

func (*SignupReply) ProtoMessage()

func (*SignupReply) ProtoReflect

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

func (*SignupReply) Reset

func (x *SignupReply) Reset()

func (*SignupReply) String

func (x *SignupReply) String() string

type SignupRequest

type SignupRequest 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"`
	// contains filtered or unexported fields
}

func (*SignupRequest) Descriptor deprecated

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

Deprecated: Use SignupRequest.ProtoReflect.Descriptor instead.

func (*SignupRequest) GetName

func (x *SignupRequest) GetName() string

func (*SignupRequest) GetPassword

func (x *SignupRequest) GetPassword() string

func (*SignupRequest) ProtoMessage

func (*SignupRequest) ProtoMessage()

func (*SignupRequest) ProtoReflect

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

func (*SignupRequest) Reset

func (x *SignupRequest) Reset()

func (*SignupRequest) String

func (x *SignupRequest) String() string

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) Signin

func (UnimplementedAccountServer) Signup

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