app_pb

package
v0.0.0-...-0c43097 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUser        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUser          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServer) Login

type UserClient

type UserClient interface {
	Login(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*UserInfoReply, error)
}

UserClient is the client API for User service.

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

func NewUserClient

func NewUserClient(cc *grpc.ClientConn) UserClient

type UserInfoReply

type UserInfoReply struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt            string   `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserInfoReply) Descriptor

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

func (*UserInfoReply) GetCreatedAt

func (m *UserInfoReply) GetCreatedAt() string

func (*UserInfoReply) GetId

func (m *UserInfoReply) GetId() int64

func (*UserInfoReply) GetName

func (m *UserInfoReply) GetName() string

func (*UserInfoReply) Marshal

func (m *UserInfoReply) Marshal() (dAtA []byte, err error)

func (*UserInfoReply) MarshalTo

func (m *UserInfoReply) MarshalTo(dAtA []byte) (int, error)

func (*UserInfoReply) MarshalToSizedBuffer

func (m *UserInfoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserInfoReply) ProtoMessage

func (*UserInfoReply) ProtoMessage()

func (*UserInfoReply) Reset

func (m *UserInfoReply) Reset()

func (*UserInfoReply) Size

func (m *UserInfoReply) Size() (n int)

func (*UserInfoReply) String

func (m *UserInfoReply) String() string

func (*UserInfoReply) Unmarshal

func (m *UserInfoReply) Unmarshal(dAtA []byte) error

func (*UserInfoReply) Validate

func (m *UserInfoReply) Validate() error

Validate checks the field values on UserInfoReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UserInfoReply) XXX_DiscardUnknown

func (m *UserInfoReply) XXX_DiscardUnknown()

func (*UserInfoReply) XXX_Marshal

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

func (*UserInfoReply) XXX_Merge

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

func (*UserInfoReply) XXX_Size

func (m *UserInfoReply) XXX_Size() int

func (*UserInfoReply) XXX_Unmarshal

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

type UserInfoReplyValidationError

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

UserInfoReplyValidationError is the validation error returned by UserInfoReply.Validate if the designated constraints aren't met.

func (UserInfoReplyValidationError) Cause

Cause function returns cause value.

func (UserInfoReplyValidationError) Error

Error satisfies the builtin error interface

func (UserInfoReplyValidationError) ErrorName

func (e UserInfoReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UserInfoReplyValidationError) Field

Field function returns field value.

func (UserInfoReplyValidationError) Key

Key function returns key value.

func (UserInfoReplyValidationError) Reason

Reason function returns reason value.

type UserLoginRequest

type UserLoginRequest struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserLoginRequest) Descriptor

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

func (*UserLoginRequest) GetId

func (m *UserLoginRequest) GetId() int32

func (*UserLoginRequest) Marshal

func (m *UserLoginRequest) Marshal() (dAtA []byte, err error)

func (*UserLoginRequest) MarshalTo

func (m *UserLoginRequest) MarshalTo(dAtA []byte) (int, error)

func (*UserLoginRequest) MarshalToSizedBuffer

func (m *UserLoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserLoginRequest) ProtoMessage

func (*UserLoginRequest) ProtoMessage()

func (*UserLoginRequest) Reset

func (m *UserLoginRequest) Reset()

func (*UserLoginRequest) Size

func (m *UserLoginRequest) Size() (n int)

func (*UserLoginRequest) String

func (m *UserLoginRequest) String() string

func (*UserLoginRequest) Unmarshal

func (m *UserLoginRequest) Unmarshal(dAtA []byte) error

func (*UserLoginRequest) Validate

func (m *UserLoginRequest) Validate() error

Validate checks the field values on UserLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UserLoginRequest) XXX_DiscardUnknown

func (m *UserLoginRequest) XXX_DiscardUnknown()

func (*UserLoginRequest) XXX_Marshal

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

func (*UserLoginRequest) XXX_Merge

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

func (*UserLoginRequest) XXX_Size

func (m *UserLoginRequest) XXX_Size() int

func (*UserLoginRequest) XXX_Unmarshal

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

type UserLoginRequestValidationError

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

UserLoginRequestValidationError is the validation error returned by UserLoginRequest.Validate if the designated constraints aren't met.

func (UserLoginRequestValidationError) Cause

Cause function returns cause value.

func (UserLoginRequestValidationError) Error

Error satisfies the builtin error interface

func (UserLoginRequestValidationError) ErrorName

ErrorName returns error name.

func (UserLoginRequestValidationError) Field

Field function returns field value.

func (UserLoginRequestValidationError) Key

Key function returns key value.

func (UserLoginRequestValidationError) Reason

Reason function returns reason value.

type UserServer

type UserServer interface {
	Login(context.Context, *UserLoginRequest) (*UserInfoReply, error)
}

UserServer is the server API for User service.

Jump to

Keyboard shortcuts

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