Documentation ¶
Index ¶
- Variables
- func RegisterPageGsrvServer(s grpc.ServiceRegistrar, srv PageGsrvServer)
- type Chapter
- type Page
- type PageGsrvClient
- type PageGsrvServer
- type PageGsrv_PageRowGenRowClient
- type PageGsrv_PageRowGenRowServer
- type PageGsrv_PageRowGenUserClient
- type PageGsrv_PageRowGenUserServer
- type PageRow
- func (*PageRow) Descriptor() ([]byte, []int)deprecated
- func (x *PageRow) GetChapters() map[string]*Chapter
- func (x *PageRow) GetOption() map[string]*structpb.Value
- func (x *PageRow) GetRowNo() int32
- func (*PageRow) ProtoMessage()
- func (x *PageRow) ProtoReflect() protoreflect.Message
- func (x *PageRow) Reset()
- func (x *PageRow) String() string
- type UnimplementedPageGsrvServer
- type UnsafePageGsrvServer
Constants ¶
This section is empty.
Variables ¶
var File_page_v1_page_proto protoreflect.FileDescriptor
var PageGsrv_ServiceDesc = grpc.ServiceDesc{ ServiceName: "page.v1.PageGsrv", HandlerType: (*PageGsrvServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageFetchUser", Handler: _PageGsrv_PageFetchUser_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "PageRowGenRow", Handler: _PageGsrv_PageRowGenRow_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "PageRowGenUser", Handler: _PageGsrv_PageRowGenUser_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "page/v1/page.proto", }
PageGsrv_ServiceDesc is the grpc.ServiceDesc for PageGsrv service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPageGsrvServer ¶
func RegisterPageGsrvServer(s grpc.ServiceRegistrar, srv PageGsrvServer)
Types ¶
type Chapter ¶
type Chapter struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Chapter) Descriptor
deprecated
func (*Chapter) ProtoMessage ¶
func (*Chapter) ProtoMessage()
func (*Chapter) ProtoReflect ¶
func (x *Chapter) ProtoReflect() protoreflect.Message
type Page ¶
type Page struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PerPage int32 `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*Page) Descriptor
deprecated
func (*Page) GetPerPage ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type PageGsrvClient ¶
type PageGsrvClient interface { PageFetchUser(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) PageRowGenRow(ctx context.Context, opts ...grpc.CallOption) (PageGsrv_PageRowGenRowClient, error) PageRowGenUser(ctx context.Context, opts ...grpc.CallOption) (PageGsrv_PageRowGenUserClient, error) }
PageGsrvClient is the client API for PageGsrv 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 NewPageGsrvClient ¶
func NewPageGsrvClient(cc grpc.ClientConnInterface) PageGsrvClient
type PageGsrvServer ¶
type PageGsrvServer interface { PageFetchUser(context.Context, *anypb.Any) (*anypb.Any, error) PageRowGenRow(PageGsrv_PageRowGenRowServer) error PageRowGenUser(PageGsrv_PageRowGenUserServer) error // contains filtered or unexported methods }
PageGsrvServer is the server API for PageGsrv service. All implementations must embed UnimplementedPageGsrvServer for forward compatibility
type PageRow ¶
type PageRow struct { RowNo int32 `protobuf:"varint,1,opt,name=row_no,json=rowNo,proto3" json:"row_no,omitempty"` Chapters map[string]*Chapter `` /* 157-byte string literal not displayed */ Option map[string]*structpb.Value `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PageRow) Descriptor
deprecated
func (*PageRow) GetChapters ¶
func (*PageRow) ProtoMessage ¶
func (*PageRow) ProtoMessage()
func (*PageRow) ProtoReflect ¶
func (x *PageRow) ProtoReflect() protoreflect.Message
type UnimplementedPageGsrvServer ¶
type UnimplementedPageGsrvServer struct { }
UnimplementedPageGsrvServer must be embedded to have forward compatible implementations.
func (UnimplementedPageGsrvServer) PageFetchUser ¶
func (UnimplementedPageGsrvServer) PageRowGenRow ¶
func (UnimplementedPageGsrvServer) PageRowGenRow(PageGsrv_PageRowGenRowServer) error
func (UnimplementedPageGsrvServer) PageRowGenUser ¶
func (UnimplementedPageGsrvServer) PageRowGenUser(PageGsrv_PageRowGenUserServer) error
type UnsafePageGsrvServer ¶
type UnsafePageGsrvServer interface {
// contains filtered or unexported methods
}
UnsafePageGsrvServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PageGsrvServer will result in compilation errors.