Documentation ¶
Index ¶
- Variables
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type NewUserRequest
- func (*NewUserRequest) Descriptor() ([]byte, []int)
- func (m *NewUserRequest) GetEmail() string
- func (m *NewUserRequest) GetStatus() UserStatus
- func (m *NewUserRequest) GetUuid() string
- func (*NewUserRequest) ProtoMessage()
- func (m *NewUserRequest) Reset()
- func (m *NewUserRequest) String() string
- func (m *NewUserRequest) XXX_DiscardUnknown()
- func (m *NewUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewUserRequest) XXX_Merge(src proto.Message)
- func (m *NewUserRequest) XXX_Size() int
- func (m *NewUserRequest) XXX_Unmarshal(b []byte) error
- type NewUserResponse
- func (*NewUserResponse) Descriptor() ([]byte, []int)
- func (m *NewUserResponse) GetEmail() string
- func (m *NewUserResponse) GetStatus() UserStatus
- func (m *NewUserResponse) GetUuid() string
- func (*NewUserResponse) ProtoMessage()
- func (m *NewUserResponse) Reset()
- func (m *NewUserResponse) String() string
- func (m *NewUserResponse) XXX_DiscardUnknown()
- func (m *NewUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewUserResponse) XXX_Merge(src proto.Message)
- func (m *NewUserResponse) XXX_Size() int
- func (m *NewUserResponse) XXX_Unmarshal(b []byte) error
- type UserClient
- type UserServer
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var UserStatus_name = map[int32]string{
0: "INACTIVE",
1: "ACTIVE",
2: "DELETED",
}
View Source
var UserStatus_value = map[string]int32{
"INACTIVE": 0,
"ACTIVE": 1,
"DELETED": 2,
}
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type NewUserRequest ¶
type NewUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` Status UserStatus `protobuf:"varint,3,opt,name=status,proto3,enum=protocol.UserStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewUserRequest) Descriptor ¶
func (*NewUserRequest) Descriptor() ([]byte, []int)
func (*NewUserRequest) GetEmail ¶
func (m *NewUserRequest) GetEmail() string
func (*NewUserRequest) GetStatus ¶
func (m *NewUserRequest) GetStatus() UserStatus
func (*NewUserRequest) GetUuid ¶
func (m *NewUserRequest) GetUuid() string
func (*NewUserRequest) ProtoMessage ¶
func (*NewUserRequest) ProtoMessage()
func (*NewUserRequest) Reset ¶
func (m *NewUserRequest) Reset()
func (*NewUserRequest) String ¶
func (m *NewUserRequest) String() string
func (*NewUserRequest) XXX_DiscardUnknown ¶
func (m *NewUserRequest) XXX_DiscardUnknown()
func (*NewUserRequest) XXX_Marshal ¶
func (m *NewUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewUserRequest) XXX_Merge ¶
func (m *NewUserRequest) XXX_Merge(src proto.Message)
func (*NewUserRequest) XXX_Size ¶
func (m *NewUserRequest) XXX_Size() int
func (*NewUserRequest) XXX_Unmarshal ¶
func (m *NewUserRequest) XXX_Unmarshal(b []byte) error
type NewUserResponse ¶
type NewUserResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` Status UserStatus `protobuf:"varint,3,opt,name=status,proto3,enum=protocol.UserStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewUserResponse) Descriptor ¶
func (*NewUserResponse) Descriptor() ([]byte, []int)
func (*NewUserResponse) GetEmail ¶
func (m *NewUserResponse) GetEmail() string
func (*NewUserResponse) GetStatus ¶
func (m *NewUserResponse) GetStatus() UserStatus
func (*NewUserResponse) GetUuid ¶
func (m *NewUserResponse) GetUuid() string
func (*NewUserResponse) ProtoMessage ¶
func (*NewUserResponse) ProtoMessage()
func (*NewUserResponse) Reset ¶
func (m *NewUserResponse) Reset()
func (*NewUserResponse) String ¶
func (m *NewUserResponse) String() string
func (*NewUserResponse) XXX_DiscardUnknown ¶
func (m *NewUserResponse) XXX_DiscardUnknown()
func (*NewUserResponse) XXX_Marshal ¶
func (m *NewUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewUserResponse) XXX_Merge ¶
func (m *NewUserResponse) XXX_Merge(src proto.Message)
func (*NewUserResponse) XXX_Size ¶
func (m *NewUserResponse) XXX_Size() int
func (*NewUserResponse) XXX_Unmarshal ¶
func (m *NewUserResponse) XXX_Unmarshal(b []byte) error
type UserClient ¶
type UserClient interface {
SubmitNewUser(ctx context.Context, in *NewUserRequest, opts ...grpc.CallOption) (*NewUserResponse, 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 UserServer ¶
type UserServer interface {
SubmitNewUser(context.Context, *NewUserRequest) (*NewUserResponse, error)
}
UserServer is the server API for User service.
type UserStatus ¶
type UserStatus int32
const ( UserStatus_INACTIVE UserStatus = 0 UserStatus_ACTIVE UserStatus = 1 UserStatus_DELETED UserStatus = 2 )
func (UserStatus) EnumDescriptor ¶
func (UserStatus) EnumDescriptor() ([]byte, []int)
func (UserStatus) String ¶
func (x UserStatus) String() string
Click to show internal directories.
Click to hide internal directories.