account

package
v0.0.0-...-019009c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServer

func RegisterAccountServer(s *grpc.Server, 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://godoc.org/google.golang.org/grpc#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)
}

AccountServer is the server API for Account service.

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 can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServer) Signin

func (*UnimplementedAccountServer) Signup

Jump to

Keyboard shortcuts

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