Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type CreateReq
- func (*CreateReq) Descriptor() ([]byte, []int)
- func (m *CreateReq) GetUser() *User
- func (*CreateReq) ProtoMessage()
- func (m *CreateReq) Reset()
- func (m *CreateReq) String() string
- func (m *CreateReq) XXX_DiscardUnknown()
- func (m *CreateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateReq) XXX_Merge(src proto.Message)
- func (m *CreateReq) XXX_Size() int
- func (m *CreateReq) XXX_Unmarshal(b []byte) error
- type CreateResp
- func (*CreateResp) Descriptor() ([]byte, []int)
- func (m *CreateResp) GetStatus() *Status
- func (m *CreateResp) GetUser() *User
- func (*CreateResp) ProtoMessage()
- func (m *CreateResp) Reset()
- func (m *CreateResp) String() string
- func (m *CreateResp) XXX_DiscardUnknown()
- func (m *CreateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResp) XXX_Merge(src proto.Message)
- func (m *CreateResp) XXX_Size() int
- func (m *CreateResp) XXX_Unmarshal(b []byte) error
- type GetByEmailReq
- func (*GetByEmailReq) Descriptor() ([]byte, []int)
- func (m *GetByEmailReq) GetEmail() string
- func (*GetByEmailReq) ProtoMessage()
- func (m *GetByEmailReq) Reset()
- func (m *GetByEmailReq) String() string
- func (m *GetByEmailReq) XXX_DiscardUnknown()
- func (m *GetByEmailReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetByEmailReq) XXX_Merge(src proto.Message)
- func (m *GetByEmailReq) XXX_Size() int
- func (m *GetByEmailReq) XXX_Unmarshal(b []byte) error
- type GetByEmailResp
- func (*GetByEmailResp) Descriptor() ([]byte, []int)
- func (m *GetByEmailResp) GetStatus() *Status
- func (m *GetByEmailResp) GetUser() *User
- func (*GetByEmailResp) ProtoMessage()
- func (m *GetByEmailResp) Reset()
- func (m *GetByEmailResp) String() string
- func (m *GetByEmailResp) XXX_DiscardUnknown()
- func (m *GetByEmailResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetByEmailResp) XXX_Merge(src proto.Message)
- func (m *GetByEmailResp) XXX_Size() int
- func (m *GetByEmailResp) XXX_Unmarshal(b []byte) error
- type ListReq
- func (*ListReq) Descriptor() ([]byte, []int)
- func (*ListReq) ProtoMessage()
- func (m *ListReq) Reset()
- func (m *ListReq) String() string
- func (m *ListReq) XXX_DiscardUnknown()
- func (m *ListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListReq) XXX_Merge(src proto.Message)
- func (m *ListReq) XXX_Size() int
- func (m *ListReq) XXX_Unmarshal(b []byte) error
- type Name
- func (*Name) Descriptor() ([]byte, []int)
- func (m *Name) GetFirst() string
- func (m *Name) GetLast() string
- func (*Name) ProtoMessage()
- func (m *Name) Reset()
- func (m *Name) String() string
- func (m *Name) XXX_DiscardUnknown()
- func (m *Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Name) XXX_Merge(src proto.Message)
- func (m *Name) XXX_Size() int
- func (m *Name) XXX_Unmarshal(b []byte) error
- type SearchAgeReq
- func (*SearchAgeReq) Descriptor() ([]byte, []int)
- func (m *SearchAgeReq) GetAgeRange() *SearchAgeReq_AgeRange
- func (*SearchAgeReq) ProtoMessage()
- func (m *SearchAgeReq) Reset()
- func (m *SearchAgeReq) String() string
- func (m *SearchAgeReq) XXX_DiscardUnknown()
- func (m *SearchAgeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchAgeReq) XXX_Merge(src proto.Message)
- func (m *SearchAgeReq) XXX_Size() int
- func (m *SearchAgeReq) XXX_Unmarshal(b []byte) error
- type SearchAgeReq_AgeRange
- func (*SearchAgeReq_AgeRange) Descriptor() ([]byte, []int)
- func (m *SearchAgeReq_AgeRange) GetFrom() int32
- func (m *SearchAgeReq_AgeRange) GetToIncluded() int32
- func (*SearchAgeReq_AgeRange) ProtoMessage()
- func (m *SearchAgeReq_AgeRange) Reset()
- func (m *SearchAgeReq_AgeRange) String() string
- func (m *SearchAgeReq_AgeRange) XXX_DiscardUnknown()
- func (m *SearchAgeReq_AgeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchAgeReq_AgeRange) XXX_Merge(src proto.Message)
- func (m *SearchAgeReq_AgeRange) XXX_Size() int
- func (m *SearchAgeReq_AgeRange) XXX_Unmarshal(b []byte) error
- type SearchNameReq
- func (*SearchNameReq) Descriptor() ([]byte, []int)
- func (m *SearchNameReq) GetQuery() string
- func (*SearchNameReq) ProtoMessage()
- func (m *SearchNameReq) Reset()
- func (m *SearchNameReq) String() string
- func (m *SearchNameReq) XXX_DiscardUnknown()
- func (m *SearchNameReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchNameReq) XXX_Merge(src proto.Message)
- func (m *SearchNameReq) XXX_Size() int
- func (m *SearchNameReq) XXX_Unmarshal(b []byte) error
- type SearchResp
- func (*SearchResp) Descriptor() ([]byte, []int)
- func (m *SearchResp) GetStatus() *Status
- func (m *SearchResp) GetUsers() []*User
- func (*SearchResp) ProtoMessage()
- func (m *SearchResp) Reset()
- func (m *SearchResp) String() string
- func (m *SearchResp) XXX_DiscardUnknown()
- func (m *SearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchResp) XXX_Merge(src proto.Message)
- func (m *SearchResp) XXX_Size() int
- func (m *SearchResp) XXX_Unmarshal(b []byte) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetCode() Status_StatusCode
- func (m *Status) GetMsg() string
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) String() string
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type Status_StatusCode
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAddress() string
- func (m *User) GetAge() int32
- func (m *User) GetEmail() string
- func (m *User) GetId() string
- func (m *User) GetName() *Name
- func (m *User) GetPhone() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Status_StatusCode_name = map[int32]string{
0: "FAILED",
1: "NO_IMPL_YET",
2: "INVALID_QUERY",
3: "PARTIAL_SUCCESS",
4: "SUCCESS",
5: "READMSG",
}
View Source
var Status_StatusCode_value = map[string]int32{
"FAILED": 0,
"NO_IMPL_YET": 1,
"INVALID_QUERY": 2,
"PARTIAL_SUCCESS": 3,
"SUCCESS": 4,
"READMSG": 5,
}
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type CreateReq ¶
type CreateReq struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateReq) Descriptor ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) XXX_DiscardUnknown ¶
func (m *CreateReq) XXX_DiscardUnknown()
func (*CreateReq) XXX_Marshal ¶
func (*CreateReq) XXX_Unmarshal ¶
type CreateResp ¶
type CreateResp struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateResp) Descriptor ¶
func (*CreateResp) Descriptor() ([]byte, []int)
func (*CreateResp) GetStatus ¶
func (m *CreateResp) GetStatus() *Status
func (*CreateResp) GetUser ¶
func (m *CreateResp) GetUser() *User
func (*CreateResp) ProtoMessage ¶
func (*CreateResp) ProtoMessage()
func (*CreateResp) Reset ¶
func (m *CreateResp) Reset()
func (*CreateResp) String ¶
func (m *CreateResp) String() string
func (*CreateResp) XXX_DiscardUnknown ¶
func (m *CreateResp) XXX_DiscardUnknown()
func (*CreateResp) XXX_Marshal ¶
func (m *CreateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResp) XXX_Merge ¶
func (m *CreateResp) XXX_Merge(src proto.Message)
func (*CreateResp) XXX_Size ¶
func (m *CreateResp) XXX_Size() int
func (*CreateResp) XXX_Unmarshal ¶
func (m *CreateResp) XXX_Unmarshal(b []byte) error
type GetByEmailReq ¶
type GetByEmailReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetByEmailReq) Descriptor ¶
func (*GetByEmailReq) Descriptor() ([]byte, []int)
func (*GetByEmailReq) GetEmail ¶
func (m *GetByEmailReq) GetEmail() string
func (*GetByEmailReq) ProtoMessage ¶
func (*GetByEmailReq) ProtoMessage()
func (*GetByEmailReq) Reset ¶
func (m *GetByEmailReq) Reset()
func (*GetByEmailReq) String ¶
func (m *GetByEmailReq) String() string
func (*GetByEmailReq) XXX_DiscardUnknown ¶
func (m *GetByEmailReq) XXX_DiscardUnknown()
func (*GetByEmailReq) XXX_Marshal ¶
func (m *GetByEmailReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetByEmailReq) XXX_Merge ¶
func (m *GetByEmailReq) XXX_Merge(src proto.Message)
func (*GetByEmailReq) XXX_Size ¶
func (m *GetByEmailReq) XXX_Size() int
func (*GetByEmailReq) XXX_Unmarshal ¶
func (m *GetByEmailReq) XXX_Unmarshal(b []byte) error
type GetByEmailResp ¶
type GetByEmailResp struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetByEmailResp) Descriptor ¶
func (*GetByEmailResp) Descriptor() ([]byte, []int)
func (*GetByEmailResp) GetStatus ¶
func (m *GetByEmailResp) GetStatus() *Status
func (*GetByEmailResp) GetUser ¶
func (m *GetByEmailResp) GetUser() *User
func (*GetByEmailResp) ProtoMessage ¶
func (*GetByEmailResp) ProtoMessage()
func (*GetByEmailResp) Reset ¶
func (m *GetByEmailResp) Reset()
func (*GetByEmailResp) String ¶
func (m *GetByEmailResp) String() string
func (*GetByEmailResp) XXX_DiscardUnknown ¶
func (m *GetByEmailResp) XXX_DiscardUnknown()
func (*GetByEmailResp) XXX_Marshal ¶
func (m *GetByEmailResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetByEmailResp) XXX_Merge ¶
func (m *GetByEmailResp) XXX_Merge(src proto.Message)
func (*GetByEmailResp) XXX_Size ¶
func (m *GetByEmailResp) XXX_Size() int
func (*GetByEmailResp) XXX_Unmarshal ¶
func (m *GetByEmailResp) XXX_Unmarshal(b []byte) error
type ListReq ¶
type ListReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListReq) Descriptor ¶
func (*ListReq) ProtoMessage ¶
func (*ListReq) ProtoMessage()
func (*ListReq) XXX_DiscardUnknown ¶
func (m *ListReq) XXX_DiscardUnknown()
func (*ListReq) XXX_Marshal ¶
func (*ListReq) XXX_Unmarshal ¶
type Name ¶
type Name struct { First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"` Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Name) Descriptor ¶
func (*Name) ProtoMessage ¶
func (*Name) ProtoMessage()
func (*Name) XXX_DiscardUnknown ¶
func (m *Name) XXX_DiscardUnknown()
func (*Name) XXX_Unmarshal ¶
type SearchAgeReq ¶
type SearchAgeReq struct { AgeRange *SearchAgeReq_AgeRange `protobuf:"bytes,1,opt,name=ageRange,proto3" json:"ageRange,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchAgeReq) Descriptor ¶
func (*SearchAgeReq) Descriptor() ([]byte, []int)
func (*SearchAgeReq) GetAgeRange ¶
func (m *SearchAgeReq) GetAgeRange() *SearchAgeReq_AgeRange
func (*SearchAgeReq) ProtoMessage ¶
func (*SearchAgeReq) ProtoMessage()
func (*SearchAgeReq) Reset ¶
func (m *SearchAgeReq) Reset()
func (*SearchAgeReq) String ¶
func (m *SearchAgeReq) String() string
func (*SearchAgeReq) XXX_DiscardUnknown ¶
func (m *SearchAgeReq) XXX_DiscardUnknown()
func (*SearchAgeReq) XXX_Marshal ¶
func (m *SearchAgeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchAgeReq) XXX_Merge ¶
func (m *SearchAgeReq) XXX_Merge(src proto.Message)
func (*SearchAgeReq) XXX_Size ¶
func (m *SearchAgeReq) XXX_Size() int
func (*SearchAgeReq) XXX_Unmarshal ¶
func (m *SearchAgeReq) XXX_Unmarshal(b []byte) error
type SearchAgeReq_AgeRange ¶
type SearchAgeReq_AgeRange struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` ToIncluded int32 `protobuf:"varint,2,opt,name=to_included,json=toIncluded,proto3" json:"to_included,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchAgeReq_AgeRange) Descriptor ¶
func (*SearchAgeReq_AgeRange) Descriptor() ([]byte, []int)
func (*SearchAgeReq_AgeRange) GetFrom ¶
func (m *SearchAgeReq_AgeRange) GetFrom() int32
func (*SearchAgeReq_AgeRange) GetToIncluded ¶
func (m *SearchAgeReq_AgeRange) GetToIncluded() int32
func (*SearchAgeReq_AgeRange) ProtoMessage ¶
func (*SearchAgeReq_AgeRange) ProtoMessage()
func (*SearchAgeReq_AgeRange) Reset ¶
func (m *SearchAgeReq_AgeRange) Reset()
func (*SearchAgeReq_AgeRange) String ¶
func (m *SearchAgeReq_AgeRange) String() string
func (*SearchAgeReq_AgeRange) XXX_DiscardUnknown ¶
func (m *SearchAgeReq_AgeRange) XXX_DiscardUnknown()
func (*SearchAgeReq_AgeRange) XXX_Marshal ¶
func (m *SearchAgeReq_AgeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchAgeReq_AgeRange) XXX_Merge ¶
func (m *SearchAgeReq_AgeRange) XXX_Merge(src proto.Message)
func (*SearchAgeReq_AgeRange) XXX_Size ¶
func (m *SearchAgeReq_AgeRange) XXX_Size() int
func (*SearchAgeReq_AgeRange) XXX_Unmarshal ¶
func (m *SearchAgeReq_AgeRange) XXX_Unmarshal(b []byte) error
type SearchNameReq ¶
type SearchNameReq struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchNameReq) Descriptor ¶
func (*SearchNameReq) Descriptor() ([]byte, []int)
func (*SearchNameReq) GetQuery ¶
func (m *SearchNameReq) GetQuery() string
func (*SearchNameReq) ProtoMessage ¶
func (*SearchNameReq) ProtoMessage()
func (*SearchNameReq) Reset ¶
func (m *SearchNameReq) Reset()
func (*SearchNameReq) String ¶
func (m *SearchNameReq) String() string
func (*SearchNameReq) XXX_DiscardUnknown ¶
func (m *SearchNameReq) XXX_DiscardUnknown()
func (*SearchNameReq) XXX_Marshal ¶
func (m *SearchNameReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchNameReq) XXX_Merge ¶
func (m *SearchNameReq) XXX_Merge(src proto.Message)
func (*SearchNameReq) XXX_Size ¶
func (m *SearchNameReq) XXX_Size() int
func (*SearchNameReq) XXX_Unmarshal ¶
func (m *SearchNameReq) XXX_Unmarshal(b []byte) error
type SearchResp ¶
type SearchResp struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchResp) Descriptor ¶
func (*SearchResp) Descriptor() ([]byte, []int)
func (*SearchResp) GetStatus ¶
func (m *SearchResp) GetStatus() *Status
func (*SearchResp) GetUsers ¶
func (m *SearchResp) GetUsers() []*User
func (*SearchResp) ProtoMessage ¶
func (*SearchResp) ProtoMessage()
func (*SearchResp) Reset ¶
func (m *SearchResp) Reset()
func (*SearchResp) String ¶
func (m *SearchResp) String() string
func (*SearchResp) XXX_DiscardUnknown ¶
func (m *SearchResp) XXX_DiscardUnknown()
func (*SearchResp) XXX_Marshal ¶
func (m *SearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchResp) XXX_Merge ¶
func (m *SearchResp) XXX_Merge(src proto.Message)
func (*SearchResp) XXX_Size ¶
func (m *SearchResp) XXX_Size() int
func (*SearchResp) XXX_Unmarshal ¶
func (m *SearchResp) XXX_Unmarshal(b []byte) error
type Status ¶
type Status struct { Code Status_StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=user.Status_StatusCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A status message that is included to each response.
func (*Status) Descriptor ¶
func (*Status) GetCode ¶
func (m *Status) GetCode() Status_StatusCode
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
type Status_StatusCode ¶
type Status_StatusCode int32
const ( Status_FAILED Status_StatusCode = 0 Status_NO_IMPL_YET Status_StatusCode = 1 Status_INVALID_QUERY Status_StatusCode = 2 Status_PARTIAL_SUCCESS Status_StatusCode = 3 Status_SUCCESS Status_StatusCode = 4 Status_READMSG Status_StatusCode = 5 )
func (Status_StatusCode) EnumDescriptor ¶
func (Status_StatusCode) EnumDescriptor() ([]byte, []int)
func (Status_StatusCode) String ¶
func (x Status_StatusCode) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` Name *Name `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetAddress ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserServiceClient ¶
type UserServiceClient interface { Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateResp, error) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*SearchResp, error) GetByEmail(ctx context.Context, in *GetByEmailReq, opts ...grpc.CallOption) (*GetByEmailResp, error) // Searches in a wildcard-way in first-name and last-name. SearchName(ctx context.Context, in *SearchNameReq, opts ...grpc.CallOption) (*SearchResp, error) SearchAge(ctx context.Context, in *SearchAgeReq, opts ...grpc.CallOption) (*SearchResp, 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.ClientConn) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { Create(context.Context, *CreateReq) (*CreateResp, error) List(context.Context, *ListReq) (*SearchResp, error) GetByEmail(context.Context, *GetByEmailReq) (*GetByEmailResp, error) // Searches in a wildcard-way in first-name and last-name. SearchName(context.Context, *SearchNameReq) (*SearchResp, error) SearchAge(context.Context, *SearchAgeReq) (*SearchResp, error) }
UserServiceServer is the server API for UserService service.
Click to show internal directories.
Click to hide internal directories.