Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDazBlogServer(s grpc.ServiceRegistrar, srv DazBlogServer)
- type DazBlogClient
- type DazBlogServer
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetLimit() int64
- func (x *ListUsersRequest) GetOffset() int64
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetTotalCount() int64
- func (x *ListUsersResponse) GetUsers() []*UserInfo
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- type UnimplementedDazBlogServer
- type UnsafeDazBlogServer
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetCreatedAt() *timestamppb.Timestamp
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetGender() string
- func (x *UserInfo) GetNickname() string
- func (x *UserInfo) GetPhone() string
- func (x *UserInfo) GetPostcount() int64
- func (x *UserInfo) GetQq() string
- func (x *UserInfo) GetUpdatedAt() *timestamppb.Timestamp
- func (x *UserInfo) GetUsername() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
Constants ¶
const (
DazBlog_ListUsers_FullMethodName = "/v1.DazBlog/ListUsers"
)
Variables ¶
var DazBlog_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.DazBlog", HandlerType: (*DazBlogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUsers", Handler: _DazBlog_ListUsers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dazBlog/v1/dazBlog.proto", }
DazBlog_ServiceDesc is the grpc.ServiceDesc for DazBlog service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dazBlog_v1_dazBlog_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDazBlogServer ¶
func RegisterDazBlogServer(s grpc.ServiceRegistrar, srv DazBlogServer)
Types ¶
type DazBlogClient ¶
type DazBlogClient interface {
ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
}
DazBlogClient is the client API for DazBlog service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDazBlogClient ¶
func NewDazBlogClient(cc grpc.ClientConnInterface) DazBlogClient
type DazBlogServer ¶
type DazBlogServer interface { ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) // contains filtered or unexported methods }
DazBlogServer is the server API for DazBlog service. All implementations must embed UnimplementedDazBlogServer for forward compatibility
type ListUsersRequest ¶
type ListUsersRequest struct { Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
ListUserRequest specifies the request for `ListUser` endpoint
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetLimit ¶
func (x *ListUsersRequest) GetLimit() int64
func (*ListUsersRequest) GetOffset ¶
func (x *ListUsersRequest) GetOffset() int64
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` Users []*UserInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
ListUserResponse specifies the response for `ListUser` endpoint
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetTotalCount ¶
func (x *ListUsersResponse) GetTotalCount() int64
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*UserInfo
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type UnimplementedDazBlogServer ¶
type UnimplementedDazBlogServer struct { }
UnimplementedDazBlogServer must be embedded to have forward compatible implementations.
func (UnimplementedDazBlogServer) ListUsers ¶
func (UnimplementedDazBlogServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
type UnsafeDazBlogServer ¶
type UnsafeDazBlogServer interface {
// contains filtered or unexported methods
}
UnsafeDazBlogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DazBlogServer will result in compilation errors.
type UserInfo ¶
type UserInfo struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,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"` Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` Qq string `protobuf:"bytes,6,opt,name=qq,proto3" json:"qq,omitempty"` Postcount int64 `protobuf:"varint,7,opt,name=postcount,proto3" json:"postcount,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetCreatedAt ¶
func (x *UserInfo) GetCreatedAt() *timestamppb.Timestamp
func (*UserInfo) GetNickname ¶
func (*UserInfo) GetPostcount ¶
func (*UserInfo) GetUpdatedAt ¶
func (x *UserInfo) GetUpdatedAt() *timestamppb.Timestamp
func (*UserInfo) GetUsername ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message