Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDemoHTTPServer(s *http.Server, srv DemoHTTPServer)
- func RegisterDemoServer(s grpc.ServiceRegistrar, srv DemoServer)
- type CreateDemoReply
- func (*CreateDemoReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDemoReply) GetResults() []*CreateDemoReply_Article
- func (*CreateDemoReply) ProtoMessage()
- func (x *CreateDemoReply) ProtoReflect() protoreflect.Message
- func (x *CreateDemoReply) Reset()
- func (x *CreateDemoReply) String() string
- type CreateDemoReply_Article
- func (*CreateDemoReply_Article) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDemoReply_Article) GetComment() string
- func (x *CreateDemoReply_Article) GetContent() string
- func (x *CreateDemoReply_Article) GetId() int64
- func (*CreateDemoReply_Article) ProtoMessage()
- func (x *CreateDemoReply_Article) ProtoReflect() protoreflect.Message
- func (x *CreateDemoReply_Article) Reset()
- func (x *CreateDemoReply_Article) String() string
- type CreateDemoRequest
- func (*CreateDemoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDemoRequest) GetCommContent() string
- func (x *CreateDemoRequest) GetComment() string
- func (x *CreateDemoRequest) GetContent() string
- func (x *CreateDemoRequest) GetId() int64
- func (x *CreateDemoRequest) GetName() string
- func (x *CreateDemoRequest) GetTitle() string
- func (*CreateDemoRequest) ProtoMessage()
- func (x *CreateDemoRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDemoRequest) Reset()
- func (x *CreateDemoRequest) String() string
- type DeleteDemoReply
- func (*DeleteDemoReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDemoReply) GetResults() []*DeleteDemoReply_Article
- func (*DeleteDemoReply) ProtoMessage()
- func (x *DeleteDemoReply) ProtoReflect() protoreflect.Message
- func (x *DeleteDemoReply) Reset()
- func (x *DeleteDemoReply) String() string
- type DeleteDemoReply_Article
- func (*DeleteDemoReply_Article) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDemoReply_Article) GetComment() string
- func (x *DeleteDemoReply_Article) GetContent() string
- func (x *DeleteDemoReply_Article) GetId() int64
- func (*DeleteDemoReply_Article) ProtoMessage()
- func (x *DeleteDemoReply_Article) ProtoReflect() protoreflect.Message
- func (x *DeleteDemoReply_Article) Reset()
- func (x *DeleteDemoReply_Article) String() string
- type DeleteDemoRequest
- type DemoClient
- type DemoHTTPClient
- type DemoHTTPClientImpl
- func (c *DemoHTTPClientImpl) CreateDemo(ctx context.Context, in *CreateDemoRequest, opts ...http.CallOption) (*CreateDemoReply, error)
- func (c *DemoHTTPClientImpl) DeleteDemo(ctx context.Context, in *DeleteDemoRequest, opts ...http.CallOption) (*DeleteDemoReply, error)
- func (c *DemoHTTPClientImpl) GetDemo(ctx context.Context, in *GetDemoRequest, opts ...http.CallOption) (*GetDemoReply, error)
- func (c *DemoHTTPClientImpl) ListDemo(ctx context.Context, in *ListDemoRequest, opts ...http.CallOption) (*ListDemoReply, error)
- func (c *DemoHTTPClientImpl) SayHello(ctx context.Context, in *HelloRequest, opts ...http.CallOption) (*HelloReply, error)
- func (c *DemoHTTPClientImpl) UpdateDemo(ctx context.Context, in *UpdateDemoRequest, opts ...http.CallOption) (*UpdateDemoReply, error)
- type DemoHTTPServer
- type DemoServer
- type GetDemoReply
- type GetDemoReply_Article
- func (*GetDemoReply_Article) Descriptor() ([]byte, []int)deprecated
- func (x *GetDemoReply_Article) GetComment() string
- func (x *GetDemoReply_Article) GetContent() string
- func (x *GetDemoReply_Article) GetId() int64
- func (*GetDemoReply_Article) ProtoMessage()
- func (x *GetDemoReply_Article) ProtoReflect() protoreflect.Message
- func (x *GetDemoReply_Article) Reset()
- func (x *GetDemoReply_Article) String() string
- type GetDemoRequest
- type HelloReply
- type HelloRequest
- type ListDemoReply
- type ListDemoReply_Article
- func (*ListDemoReply_Article) Descriptor() ([]byte, []int)deprecated
- func (x *ListDemoReply_Article) GetComment() string
- func (x *ListDemoReply_Article) GetContent() string
- func (x *ListDemoReply_Article) GetId() int64
- func (*ListDemoReply_Article) ProtoMessage()
- func (x *ListDemoReply_Article) ProtoReflect() protoreflect.Message
- func (x *ListDemoReply_Article) Reset()
- func (x *ListDemoReply_Article) String() string
- type ListDemoRequest
- type UnimplementedDemoServer
- func (UnimplementedDemoServer) CreateDemo(context.Context, *CreateDemoRequest) (*CreateDemoReply, error)
- func (UnimplementedDemoServer) DeleteDemo(context.Context, *DeleteDemoRequest) (*DeleteDemoReply, error)
- func (UnimplementedDemoServer) GetDemo(context.Context, *GetDemoRequest) (*GetDemoReply, error)
- func (UnimplementedDemoServer) ListDemo(context.Context, *ListDemoRequest) (*ListDemoReply, error)
- func (UnimplementedDemoServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
- func (UnimplementedDemoServer) UpdateDemo(context.Context, *UpdateDemoRequest) (*UpdateDemoReply, error)
- type UnsafeDemoServer
- type UpdateDemoReply
- func (*UpdateDemoReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDemoReply) GetResults() []*UpdateDemoReply_Article
- func (*UpdateDemoReply) ProtoMessage()
- func (x *UpdateDemoReply) ProtoReflect() protoreflect.Message
- func (x *UpdateDemoReply) Reset()
- func (x *UpdateDemoReply) String() string
- type UpdateDemoReply_Article
- func (*UpdateDemoReply_Article) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDemoReply_Article) GetComment() string
- func (x *UpdateDemoReply_Article) GetContent() string
- func (x *UpdateDemoReply_Article) GetId() int64
- func (*UpdateDemoReply_Article) ProtoMessage()
- func (x *UpdateDemoReply_Article) ProtoReflect() protoreflect.Message
- func (x *UpdateDemoReply_Article) Reset()
- func (x *UpdateDemoReply_Article) String() string
- type UpdateDemoRequest
- func (*UpdateDemoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDemoRequest) GetComment() string
- func (x *UpdateDemoRequest) GetContent() string
- func (x *UpdateDemoRequest) GetId() int64
- func (*UpdateDemoRequest) ProtoMessage()
- func (x *UpdateDemoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDemoRequest) Reset()
- func (x *UpdateDemoRequest) String() string
Constants ¶
const ( Demo_CreateDemo_FullMethodName = "/api.thanos.Demo/CreateDemo" Demo_UpdateDemo_FullMethodName = "/api.thanos.Demo/UpdateDemo" Demo_DeleteDemo_FullMethodName = "/api.thanos.Demo/DeleteDemo" Demo_GetDemo_FullMethodName = "/api.thanos.Demo/GetDemo" Demo_ListDemo_FullMethodName = "/api.thanos.Demo/ListDemo" Demo_SayHello_FullMethodName = "/api.thanos.Demo/SayHello" )
const OperationDemoCreateDemo = "/api.thanos.Demo/CreateDemo"
const OperationDemoDeleteDemo = "/api.thanos.Demo/DeleteDemo"
const OperationDemoGetDemo = "/api.thanos.Demo/GetDemo"
const OperationDemoListDemo = "/api.thanos.Demo/ListDemo"
const OperationDemoSayHello = "/api.thanos.Demo/SayHello"
const OperationDemoUpdateDemo = "/api.thanos.Demo/UpdateDemo"
Variables ¶
var Demo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.thanos.Demo", HandlerType: (*DemoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDemo", Handler: _Demo_CreateDemo_Handler, }, { MethodName: "UpdateDemo", Handler: _Demo_UpdateDemo_Handler, }, { MethodName: "DeleteDemo", Handler: _Demo_DeleteDemo_Handler, }, { MethodName: "GetDemo", Handler: _Demo_GetDemo_Handler, }, { MethodName: "ListDemo", Handler: _Demo_ListDemo_Handler, }, { MethodName: "SayHello", Handler: _Demo_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/thanos/demo.proto", }
Demo_ServiceDesc is the grpc.ServiceDesc for Demo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_thanos_demo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDemoHTTPServer ¶
func RegisterDemoHTTPServer(s *http.Server, srv DemoHTTPServer)
func RegisterDemoServer ¶
func RegisterDemoServer(s grpc.ServiceRegistrar, srv DemoServer)
Types ¶
type CreateDemoReply ¶
type CreateDemoReply struct { Results []*CreateDemoReply_Article `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*CreateDemoReply) Descriptor
deprecated
func (*CreateDemoReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateDemoReply.ProtoReflect.Descriptor instead.
func (*CreateDemoReply) GetResults ¶
func (x *CreateDemoReply) GetResults() []*CreateDemoReply_Article
func (*CreateDemoReply) ProtoMessage ¶
func (*CreateDemoReply) ProtoMessage()
func (*CreateDemoReply) ProtoReflect ¶
func (x *CreateDemoReply) ProtoReflect() protoreflect.Message
func (*CreateDemoReply) Reset ¶
func (x *CreateDemoReply) Reset()
func (*CreateDemoReply) String ¶
func (x *CreateDemoReply) String() string
type CreateDemoReply_Article ¶
type CreateDemoReply_Article struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CreateDemoReply_Article) Descriptor
deprecated
func (*CreateDemoReply_Article) Descriptor() ([]byte, []int)
Deprecated: Use CreateDemoReply_Article.ProtoReflect.Descriptor instead.
func (*CreateDemoReply_Article) GetComment ¶
func (x *CreateDemoReply_Article) GetComment() string
func (*CreateDemoReply_Article) GetContent ¶
func (x *CreateDemoReply_Article) GetContent() string
func (*CreateDemoReply_Article) GetId ¶
func (x *CreateDemoReply_Article) GetId() int64
func (*CreateDemoReply_Article) ProtoMessage ¶
func (*CreateDemoReply_Article) ProtoMessage()
func (*CreateDemoReply_Article) ProtoReflect ¶
func (x *CreateDemoReply_Article) ProtoReflect() protoreflect.Message
func (*CreateDemoReply_Article) Reset ¶
func (x *CreateDemoReply_Article) Reset()
func (*CreateDemoReply_Article) String ¶
func (x *CreateDemoReply_Article) String() string
type CreateDemoRequest ¶
type CreateDemoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` CommContent string `protobuf:"bytes,6,opt,name=comm_content,json=commContent,proto3" json:"comm_content,omitempty"` // contains filtered or unexported fields }
func (*CreateDemoRequest) Descriptor
deprecated
func (*CreateDemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDemoRequest.ProtoReflect.Descriptor instead.
func (*CreateDemoRequest) GetCommContent ¶
func (x *CreateDemoRequest) GetCommContent() string
func (*CreateDemoRequest) GetComment ¶
func (x *CreateDemoRequest) GetComment() string
func (*CreateDemoRequest) GetContent ¶
func (x *CreateDemoRequest) GetContent() string
func (*CreateDemoRequest) GetId ¶
func (x *CreateDemoRequest) GetId() int64
func (*CreateDemoRequest) GetName ¶
func (x *CreateDemoRequest) GetName() string
func (*CreateDemoRequest) GetTitle ¶
func (x *CreateDemoRequest) GetTitle() string
func (*CreateDemoRequest) ProtoMessage ¶
func (*CreateDemoRequest) ProtoMessage()
func (*CreateDemoRequest) ProtoReflect ¶
func (x *CreateDemoRequest) ProtoReflect() protoreflect.Message
func (*CreateDemoRequest) Reset ¶
func (x *CreateDemoRequest) Reset()
func (*CreateDemoRequest) String ¶
func (x *CreateDemoRequest) String() string
type DeleteDemoReply ¶
type DeleteDemoReply struct { Results []*DeleteDemoReply_Article `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*DeleteDemoReply) Descriptor
deprecated
func (*DeleteDemoReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDemoReply.ProtoReflect.Descriptor instead.
func (*DeleteDemoReply) GetResults ¶
func (x *DeleteDemoReply) GetResults() []*DeleteDemoReply_Article
func (*DeleteDemoReply) ProtoMessage ¶
func (*DeleteDemoReply) ProtoMessage()
func (*DeleteDemoReply) ProtoReflect ¶
func (x *DeleteDemoReply) ProtoReflect() protoreflect.Message
func (*DeleteDemoReply) Reset ¶
func (x *DeleteDemoReply) Reset()
func (*DeleteDemoReply) String ¶
func (x *DeleteDemoReply) String() string
type DeleteDemoReply_Article ¶
type DeleteDemoReply_Article struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*DeleteDemoReply_Article) Descriptor
deprecated
func (*DeleteDemoReply_Article) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDemoReply_Article.ProtoReflect.Descriptor instead.
func (*DeleteDemoReply_Article) GetComment ¶
func (x *DeleteDemoReply_Article) GetComment() string
func (*DeleteDemoReply_Article) GetContent ¶
func (x *DeleteDemoReply_Article) GetContent() string
func (*DeleteDemoReply_Article) GetId ¶
func (x *DeleteDemoReply_Article) GetId() int64
func (*DeleteDemoReply_Article) ProtoMessage ¶
func (*DeleteDemoReply_Article) ProtoMessage()
func (*DeleteDemoReply_Article) ProtoReflect ¶
func (x *DeleteDemoReply_Article) ProtoReflect() protoreflect.Message
func (*DeleteDemoReply_Article) Reset ¶
func (x *DeleteDemoReply_Article) Reset()
func (*DeleteDemoReply_Article) String ¶
func (x *DeleteDemoReply_Article) String() string
type DeleteDemoRequest ¶
type DeleteDemoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDemoRequest) Descriptor
deprecated
func (*DeleteDemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDemoRequest.ProtoReflect.Descriptor instead.
func (*DeleteDemoRequest) GetId ¶
func (x *DeleteDemoRequest) GetId() int64
func (*DeleteDemoRequest) ProtoMessage ¶
func (*DeleteDemoRequest) ProtoMessage()
func (*DeleteDemoRequest) ProtoReflect ¶
func (x *DeleteDemoRequest) ProtoReflect() protoreflect.Message
func (*DeleteDemoRequest) Reset ¶
func (x *DeleteDemoRequest) Reset()
func (*DeleteDemoRequest) String ¶
func (x *DeleteDemoRequest) String() string
type DemoClient ¶
type DemoClient interface { CreateDemo(ctx context.Context, in *CreateDemoRequest, opts ...grpc.CallOption) (*CreateDemoReply, error) UpdateDemo(ctx context.Context, in *UpdateDemoRequest, opts ...grpc.CallOption) (*UpdateDemoReply, error) DeleteDemo(ctx context.Context, in *DeleteDemoRequest, opts ...grpc.CallOption) (*DeleteDemoReply, error) GetDemo(ctx context.Context, in *GetDemoRequest, opts ...grpc.CallOption) (*GetDemoReply, error) ListDemo(ctx context.Context, in *ListDemoRequest, opts ...grpc.CallOption) (*ListDemoReply, error) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) }
DemoClient is the client API for Demo 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 NewDemoClient ¶
func NewDemoClient(cc grpc.ClientConnInterface) DemoClient
type DemoHTTPClient ¶
type DemoHTTPClient interface { CreateDemo(ctx context.Context, req *CreateDemoRequest, opts ...http.CallOption) (rsp *CreateDemoReply, err error) DeleteDemo(ctx context.Context, req *DeleteDemoRequest, opts ...http.CallOption) (rsp *DeleteDemoReply, err error) GetDemo(ctx context.Context, req *GetDemoRequest, opts ...http.CallOption) (rsp *GetDemoReply, err error) ListDemo(ctx context.Context, req *ListDemoRequest, opts ...http.CallOption) (rsp *ListDemoReply, err error) SayHello(ctx context.Context, req *HelloRequest, opts ...http.CallOption) (rsp *HelloReply, err error) UpdateDemo(ctx context.Context, req *UpdateDemoRequest, opts ...http.CallOption) (rsp *UpdateDemoReply, err error) }
func NewDemoHTTPClient ¶
func NewDemoHTTPClient(client *http.Client) DemoHTTPClient
type DemoHTTPClientImpl ¶
type DemoHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*DemoHTTPClientImpl) CreateDemo ¶
func (c *DemoHTTPClientImpl) CreateDemo(ctx context.Context, in *CreateDemoRequest, opts ...http.CallOption) (*CreateDemoReply, error)
func (*DemoHTTPClientImpl) DeleteDemo ¶
func (c *DemoHTTPClientImpl) DeleteDemo(ctx context.Context, in *DeleteDemoRequest, opts ...http.CallOption) (*DeleteDemoReply, error)
func (*DemoHTTPClientImpl) GetDemo ¶
func (c *DemoHTTPClientImpl) GetDemo(ctx context.Context, in *GetDemoRequest, opts ...http.CallOption) (*GetDemoReply, error)
func (*DemoHTTPClientImpl) ListDemo ¶
func (c *DemoHTTPClientImpl) ListDemo(ctx context.Context, in *ListDemoRequest, opts ...http.CallOption) (*ListDemoReply, error)
func (*DemoHTTPClientImpl) SayHello ¶
func (c *DemoHTTPClientImpl) SayHello(ctx context.Context, in *HelloRequest, opts ...http.CallOption) (*HelloReply, error)
func (*DemoHTTPClientImpl) UpdateDemo ¶
func (c *DemoHTTPClientImpl) UpdateDemo(ctx context.Context, in *UpdateDemoRequest, opts ...http.CallOption) (*UpdateDemoReply, error)
type DemoHTTPServer ¶
type DemoHTTPServer interface { CreateDemo(context.Context, *CreateDemoRequest) (*CreateDemoReply, error) DeleteDemo(context.Context, *DeleteDemoRequest) (*DeleteDemoReply, error) GetDemo(context.Context, *GetDemoRequest) (*GetDemoReply, error) ListDemo(context.Context, *ListDemoRequest) (*ListDemoReply, error) SayHello(context.Context, *HelloRequest) (*HelloReply, error) UpdateDemo(context.Context, *UpdateDemoRequest) (*UpdateDemoReply, error) }
type DemoServer ¶
type DemoServer interface { CreateDemo(context.Context, *CreateDemoRequest) (*CreateDemoReply, error) UpdateDemo(context.Context, *UpdateDemoRequest) (*UpdateDemoReply, error) DeleteDemo(context.Context, *DeleteDemoRequest) (*DeleteDemoReply, error) GetDemo(context.Context, *GetDemoRequest) (*GetDemoReply, error) ListDemo(context.Context, *ListDemoRequest) (*ListDemoReply, error) SayHello(context.Context, *HelloRequest) (*HelloReply, error) // contains filtered or unexported methods }
DemoServer is the server API for Demo service. All implementations must embed UnimplementedDemoServer for forward compatibility.
type GetDemoReply ¶
type GetDemoReply struct { Results []*GetDemoReply_Article `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*GetDemoReply) Descriptor
deprecated
func (*GetDemoReply) Descriptor() ([]byte, []int)
Deprecated: Use GetDemoReply.ProtoReflect.Descriptor instead.
func (*GetDemoReply) GetResults ¶
func (x *GetDemoReply) GetResults() []*GetDemoReply_Article
func (*GetDemoReply) ProtoMessage ¶
func (*GetDemoReply) ProtoMessage()
func (*GetDemoReply) ProtoReflect ¶
func (x *GetDemoReply) ProtoReflect() protoreflect.Message
func (*GetDemoReply) Reset ¶
func (x *GetDemoReply) Reset()
func (*GetDemoReply) String ¶
func (x *GetDemoReply) String() string
type GetDemoReply_Article ¶
type GetDemoReply_Article struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*GetDemoReply_Article) Descriptor
deprecated
func (*GetDemoReply_Article) Descriptor() ([]byte, []int)
Deprecated: Use GetDemoReply_Article.ProtoReflect.Descriptor instead.
func (*GetDemoReply_Article) GetComment ¶
func (x *GetDemoReply_Article) GetComment() string
func (*GetDemoReply_Article) GetContent ¶
func (x *GetDemoReply_Article) GetContent() string
func (*GetDemoReply_Article) GetId ¶
func (x *GetDemoReply_Article) GetId() int64
func (*GetDemoReply_Article) ProtoMessage ¶
func (*GetDemoReply_Article) ProtoMessage()
func (*GetDemoReply_Article) ProtoReflect ¶
func (x *GetDemoReply_Article) ProtoReflect() protoreflect.Message
func (*GetDemoReply_Article) Reset ¶
func (x *GetDemoReply_Article) Reset()
func (*GetDemoReply_Article) String ¶
func (x *GetDemoReply_Article) String() string
type GetDemoRequest ¶
type GetDemoRequest struct {
// contains filtered or unexported fields
}
func (*GetDemoRequest) Descriptor
deprecated
func (*GetDemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDemoRequest.ProtoReflect.Descriptor instead.
func (*GetDemoRequest) ProtoMessage ¶
func (*GetDemoRequest) ProtoMessage()
func (*GetDemoRequest) ProtoReflect ¶
func (x *GetDemoRequest) ProtoReflect() protoreflect.Message
func (*GetDemoRequest) Reset ¶
func (x *GetDemoRequest) Reset()
func (*GetDemoRequest) String ¶
func (x *GetDemoRequest) String() string
type HelloReply ¶
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetMessage ¶
func (x *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) ProtoReflect ¶
func (x *HelloReply) ProtoReflect() protoreflect.Message
func (*HelloReply) Reset ¶
func (x *HelloReply) Reset()
func (*HelloReply) String ¶
func (x *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type ListDemoReply ¶
type ListDemoReply struct { Results []*ListDemoReply_Article `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListDemoReply) Descriptor
deprecated
func (*ListDemoReply) Descriptor() ([]byte, []int)
Deprecated: Use ListDemoReply.ProtoReflect.Descriptor instead.
func (*ListDemoReply) GetResults ¶
func (x *ListDemoReply) GetResults() []*ListDemoReply_Article
func (*ListDemoReply) ProtoMessage ¶
func (*ListDemoReply) ProtoMessage()
func (*ListDemoReply) ProtoReflect ¶
func (x *ListDemoReply) ProtoReflect() protoreflect.Message
func (*ListDemoReply) Reset ¶
func (x *ListDemoReply) Reset()
func (*ListDemoReply) String ¶
func (x *ListDemoReply) String() string
type ListDemoReply_Article ¶
type ListDemoReply_Article struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*ListDemoReply_Article) Descriptor
deprecated
func (*ListDemoReply_Article) Descriptor() ([]byte, []int)
Deprecated: Use ListDemoReply_Article.ProtoReflect.Descriptor instead.
func (*ListDemoReply_Article) GetComment ¶
func (x *ListDemoReply_Article) GetComment() string
func (*ListDemoReply_Article) GetContent ¶
func (x *ListDemoReply_Article) GetContent() string
func (*ListDemoReply_Article) GetId ¶
func (x *ListDemoReply_Article) GetId() int64
func (*ListDemoReply_Article) ProtoMessage ¶
func (*ListDemoReply_Article) ProtoMessage()
func (*ListDemoReply_Article) ProtoReflect ¶
func (x *ListDemoReply_Article) ProtoReflect() protoreflect.Message
func (*ListDemoReply_Article) Reset ¶
func (x *ListDemoReply_Article) Reset()
func (*ListDemoReply_Article) String ¶
func (x *ListDemoReply_Article) String() string
type ListDemoRequest ¶
type ListDemoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ListDemoRequest) Descriptor
deprecated
func (*ListDemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDemoRequest.ProtoReflect.Descriptor instead.
func (*ListDemoRequest) GetId ¶
func (x *ListDemoRequest) GetId() int64
func (*ListDemoRequest) ProtoMessage ¶
func (*ListDemoRequest) ProtoMessage()
func (*ListDemoRequest) ProtoReflect ¶
func (x *ListDemoRequest) ProtoReflect() protoreflect.Message
func (*ListDemoRequest) Reset ¶
func (x *ListDemoRequest) Reset()
func (*ListDemoRequest) String ¶
func (x *ListDemoRequest) String() string
type UnimplementedDemoServer ¶
type UnimplementedDemoServer struct{}
UnimplementedDemoServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDemoServer) CreateDemo ¶
func (UnimplementedDemoServer) CreateDemo(context.Context, *CreateDemoRequest) (*CreateDemoReply, error)
func (UnimplementedDemoServer) DeleteDemo ¶
func (UnimplementedDemoServer) DeleteDemo(context.Context, *DeleteDemoRequest) (*DeleteDemoReply, error)
func (UnimplementedDemoServer) GetDemo ¶
func (UnimplementedDemoServer) GetDemo(context.Context, *GetDemoRequest) (*GetDemoReply, error)
func (UnimplementedDemoServer) ListDemo ¶
func (UnimplementedDemoServer) ListDemo(context.Context, *ListDemoRequest) (*ListDemoReply, error)
func (UnimplementedDemoServer) SayHello ¶
func (UnimplementedDemoServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
func (UnimplementedDemoServer) UpdateDemo ¶
func (UnimplementedDemoServer) UpdateDemo(context.Context, *UpdateDemoRequest) (*UpdateDemoReply, error)
type UnsafeDemoServer ¶
type UnsafeDemoServer interface {
// contains filtered or unexported methods
}
UnsafeDemoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DemoServer will result in compilation errors.
type UpdateDemoReply ¶
type UpdateDemoReply struct { Results []*UpdateDemoReply_Article `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*UpdateDemoReply) Descriptor
deprecated
func (*UpdateDemoReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDemoReply.ProtoReflect.Descriptor instead.
func (*UpdateDemoReply) GetResults ¶
func (x *UpdateDemoReply) GetResults() []*UpdateDemoReply_Article
func (*UpdateDemoReply) ProtoMessage ¶
func (*UpdateDemoReply) ProtoMessage()
func (*UpdateDemoReply) ProtoReflect ¶
func (x *UpdateDemoReply) ProtoReflect() protoreflect.Message
func (*UpdateDemoReply) Reset ¶
func (x *UpdateDemoReply) Reset()
func (*UpdateDemoReply) String ¶
func (x *UpdateDemoReply) String() string
type UpdateDemoReply_Article ¶
type UpdateDemoReply_Article struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*UpdateDemoReply_Article) Descriptor
deprecated
func (*UpdateDemoReply_Article) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDemoReply_Article.ProtoReflect.Descriptor instead.
func (*UpdateDemoReply_Article) GetComment ¶
func (x *UpdateDemoReply_Article) GetComment() string
func (*UpdateDemoReply_Article) GetContent ¶
func (x *UpdateDemoReply_Article) GetContent() string
func (*UpdateDemoReply_Article) GetId ¶
func (x *UpdateDemoReply_Article) GetId() int64
func (*UpdateDemoReply_Article) ProtoMessage ¶
func (*UpdateDemoReply_Article) ProtoMessage()
func (*UpdateDemoReply_Article) ProtoReflect ¶
func (x *UpdateDemoReply_Article) ProtoReflect() protoreflect.Message
func (*UpdateDemoReply_Article) Reset ¶
func (x *UpdateDemoReply_Article) Reset()
func (*UpdateDemoReply_Article) String ¶
func (x *UpdateDemoReply_Article) String() string
type UpdateDemoRequest ¶
type UpdateDemoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*UpdateDemoRequest) Descriptor
deprecated
func (*UpdateDemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDemoRequest.ProtoReflect.Descriptor instead.
func (*UpdateDemoRequest) GetComment ¶
func (x *UpdateDemoRequest) GetComment() string
func (*UpdateDemoRequest) GetContent ¶
func (x *UpdateDemoRequest) GetContent() string
func (*UpdateDemoRequest) GetId ¶
func (x *UpdateDemoRequest) GetId() int64
func (*UpdateDemoRequest) ProtoMessage ¶
func (*UpdateDemoRequest) ProtoMessage()
func (*UpdateDemoRequest) ProtoReflect ¶
func (x *UpdateDemoRequest) ProtoReflect() protoreflect.Message
func (*UpdateDemoRequest) Reset ¶
func (x *UpdateDemoRequest) Reset()
func (*UpdateDemoRequest) String ¶
func (x *UpdateDemoRequest) String() string