Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceHTTPServer(r gin.IRoutes, srv UserServiceHTTPServer)
- type IndexRequest
- type IndexResponse
- func (*IndexResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IndexResponse) GetEmail() string
- func (x *IndexResponse) GetId() uint32
- func (x *IndexResponse) GetName() string
- func (x *IndexResponse) GetPhone() string
- func (*IndexResponse) ProtoMessage()
- func (x *IndexResponse) ProtoReflect() protoreflect.Message
- func (x *IndexResponse) Reset()
- func (x *IndexResponse) String() string
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- type UserServiceHTTPServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(r gin.IRoutes, srv UserServiceHTTPServer)
Types ¶
type IndexRequest ¶
type IndexRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IndexRequest) Descriptor
deprecated
func (*IndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use IndexRequest.ProtoReflect.Descriptor instead.
func (*IndexRequest) GetId ¶
func (x *IndexRequest) GetId() uint32
func (*IndexRequest) ProtoMessage ¶
func (*IndexRequest) ProtoMessage()
func (*IndexRequest) ProtoReflect ¶
func (x *IndexRequest) ProtoReflect() protoreflect.Message
func (*IndexRequest) Reset ¶
func (x *IndexRequest) Reset()
func (*IndexRequest) String ¶
func (x *IndexRequest) String() string
type IndexResponse ¶
type IndexResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*IndexResponse) Descriptor
deprecated
func (*IndexResponse) Descriptor() ([]byte, []int)
Deprecated: Use IndexResponse.ProtoReflect.Descriptor instead.
func (*IndexResponse) GetEmail ¶
func (x *IndexResponse) GetEmail() string
func (*IndexResponse) GetId ¶
func (x *IndexResponse) GetId() uint32
func (*IndexResponse) GetName ¶
func (x *IndexResponse) GetName() string
func (*IndexResponse) GetPhone ¶
func (x *IndexResponse) GetPhone() string
func (*IndexResponse) ProtoMessage ¶
func (*IndexResponse) ProtoMessage()
func (*IndexResponse) ProtoReflect ¶
func (x *IndexResponse) ProtoReflect() protoreflect.Message
func (*IndexResponse) Reset ¶
func (x *IndexResponse) Reset()
func (*IndexResponse) String ¶
func (x *IndexResponse) String() string
type UserServiceHTTPClient ¶
type UserServiceHTTPClient interface {
GetIndex(ctx context.Context, req *IndexRequest, opts ...http.CallOption) (rsp *IndexResponse, err error)
}
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) GetIndex ¶
func (c *UserServiceHTTPClientImpl) GetIndex(ctx context.Context, in *IndexRequest, opts ...http.CallOption) (*IndexResponse, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface {
GetIndex(*gin.Context, *IndexRequest) (*IndexResponse, error)
}
Click to show internal directories.
Click to hide internal directories.