Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type DeleteRequest
- type Empty
- type GetRequest
- type NewRequest
- func (*NewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewRequest) GetActive() bool
- func (x *NewRequest) GetBalance() int64
- func (x *NewRequest) GetCurrency() paymentpb.Currency
- func (x *NewRequest) GetEmail() string
- func (x *NewRequest) GetImage() string
- func (x *NewRequest) GetMetadata() map[string]string
- func (x *NewRequest) GetName() string
- func (x *NewRequest) GetNickname() string
- func (x *NewRequest) GetPwd() string
- func (*NewRequest) ProtoMessage()
- func (x *NewRequest) ProtoReflect() protoreflect.Message
- func (x *NewRequest) Reset()
- func (x *NewRequest) String() string
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
- func (*UnimplementedUserServiceServer) Get(context.Context, *GetRequest) (*User, error)
- func (*UnimplementedUserServiceServer) New(context.Context, *NewRequest) (*User, error)
- func (*UnimplementedUserServiceServer) Update(context.Context, *UpdateRequest) (*User, error)
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetActive() bool
- func (x *UpdateRequest) GetBalance() int64
- func (x *UpdateRequest) GetCurrency() paymentpb.Currency
- func (x *UpdateRequest) GetEmail() string
- func (x *UpdateRequest) GetId() string
- func (x *UpdateRequest) GetImage() string
- func (x *UpdateRequest) GetMetadata() map[string]string
- func (x *UpdateRequest) GetName() string
- func (x *UpdateRequest) GetNickname() string
- func (x *UpdateRequest) GetPwd() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetActive() bool
- func (x *User) GetBalance() int64
- func (x *User) GetCreated() int64
- func (x *User) GetCurrency() paymentpb.Currency
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetImage() string
- func (x *User) GetMetadata() map[string]string
- func (x *User) GetName() string
- func (x *User) GetNickname() string
- func (x *User) GetPwd() string
- func (x *User) GetUpdated() int64
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_userpb_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type NewRequest ¶
type NewRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` Balance int64 `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"` Currency paymentpb.Currency `protobuf:"varint,6,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"` Image string `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"` Pwd string `protobuf:"bytes,8,opt,name=pwd,proto3" json:"pwd,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NewRequest) Descriptor
deprecated
func (*NewRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.
func (*NewRequest) GetActive ¶
func (x *NewRequest) GetActive() bool
func (*NewRequest) GetBalance ¶
func (x *NewRequest) GetBalance() int64
func (*NewRequest) GetCurrency ¶
func (x *NewRequest) GetCurrency() paymentpb.Currency
func (*NewRequest) GetEmail ¶
func (x *NewRequest) GetEmail() string
func (*NewRequest) GetImage ¶
func (x *NewRequest) GetImage() string
func (*NewRequest) GetMetadata ¶
func (x *NewRequest) GetMetadata() map[string]string
func (*NewRequest) GetName ¶
func (x *NewRequest) GetName() string
func (*NewRequest) GetNickname ¶
func (x *NewRequest) GetNickname() string
func (*NewRequest) GetPwd ¶
func (x *NewRequest) GetPwd() string
func (*NewRequest) ProtoMessage ¶
func (*NewRequest) ProtoMessage()
func (*NewRequest) ProtoReflect ¶
func (x *NewRequest) ProtoReflect() protoreflect.Message
func (*NewRequest) Reset ¶
func (x *NewRequest) Reset()
func (*NewRequest) String ¶
func (x *NewRequest) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) Delete ¶
func (*UnimplementedUserServiceServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
func (*UnimplementedUserServiceServer) Get ¶
func (*UnimplementedUserServiceServer) Get(context.Context, *GetRequest) (*User, error)
func (*UnimplementedUserServiceServer) New ¶
func (*UnimplementedUserServiceServer) New(context.Context, *NewRequest) (*User, error)
func (*UnimplementedUserServiceServer) Update ¶
func (*UnimplementedUserServiceServer) Update(context.Context, *UpdateRequest) (*User, error)
type UpdateRequest ¶
type UpdateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` Balance int64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"` Currency paymentpb.Currency `protobuf:"varint,7,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"` Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` Pwd string `protobuf:"bytes,9,opt,name=pwd,proto3" json:"pwd,omitempty"` Metadata map[string]string `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetActive ¶
func (x *UpdateRequest) GetActive() bool
func (*UpdateRequest) GetBalance ¶
func (x *UpdateRequest) GetBalance() int64
func (*UpdateRequest) GetCurrency ¶
func (x *UpdateRequest) GetCurrency() paymentpb.Currency
func (*UpdateRequest) GetEmail ¶
func (x *UpdateRequest) GetEmail() string
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() string
func (*UpdateRequest) GetImage ¶
func (x *UpdateRequest) GetImage() string
func (*UpdateRequest) GetMetadata ¶
func (x *UpdateRequest) GetMetadata() map[string]string
func (*UpdateRequest) GetName ¶
func (x *UpdateRequest) GetName() string
func (*UpdateRequest) GetNickname ¶
func (x *UpdateRequest) GetNickname() string
func (*UpdateRequest) GetPwd ¶
func (x *UpdateRequest) GetPwd() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` Balance int64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"` Currency paymentpb.Currency `protobuf:"varint,7,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"` Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` Pwd string `protobuf:"bytes,9,opt,name=pwd,proto3" json:"pwd,omitempty"` Metadata map[string]string `` /* 158-byte string literal not displayed */ Created int64 `protobuf:"varint,998,opt,name=created,proto3" json:"created,omitempty"` Updated int64 `protobuf:"varint,999,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetBalance ¶
func (*User) GetCreated ¶
func (*User) GetCurrency ¶
func (*User) GetMetadata ¶
func (*User) GetNickname ¶
func (*User) GetUpdated ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { New(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*User, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*User, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*User, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { New(context.Context, *NewRequest) (*User, error) Get(context.Context, *GetRequest) (*User, error) Update(context.Context, *UpdateRequest) (*User, error) Delete(context.Context, *DeleteRequest) (*Empty, error) }
UserServiceServer is the server API for UserService service.
Click to show internal directories.
Click to hide internal directories.