Documentation ¶
Index ¶
- Variables
- func RegisterBlogServiceServer(s *grpc.Server, srv BlogServiceServer)
- type Blog
- func (*Blog) Descriptor() ([]byte, []int)deprecated
- func (x *Blog) GetAuthorId() string
- func (x *Blog) GetContent() string
- func (x *Blog) GetId() string
- func (x *Blog) GetTitle() string
- func (*Blog) ProtoMessage()
- func (x *Blog) ProtoReflect() protoreflect.Message
- func (x *Blog) Reset()
- func (x *Blog) String() string
- type BlogServiceClient
- type BlogServiceServer
- type BlogService_ListBlogClient
- type BlogService_ListBlogServer
- type CreateBlogRequest
- type CreateBlogResponse
- type DeleteBlogRequest
- type DeleteBlogResponse
- func (*DeleteBlogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBlogResponse) GetBlogId() string
- func (*DeleteBlogResponse) ProtoMessage()
- func (x *DeleteBlogResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteBlogResponse) Reset()
- func (x *DeleteBlogResponse) String() string
- type ListBlogRequest
- type ListBlogResponse
- type ReadBlogRequest
- type ReadBlogResponse
- type UnimplementedBlogServiceServer
- func (*UnimplementedBlogServiceServer) CreateBlog(context.Context, *CreateBlogRequest) (*CreateBlogResponse, error)
- func (*UnimplementedBlogServiceServer) DeleteBlog(context.Context, *DeleteBlogRequest) (*DeleteBlogResponse, error)
- func (*UnimplementedBlogServiceServer) ListBlog(*ListBlogRequest, BlogService_ListBlogServer) error
- func (*UnimplementedBlogServiceServer) ReadBlog(context.Context, *ReadBlogRequest) (*ReadBlogResponse, error)
- func (*UnimplementedBlogServiceServer) UpdateBlog(context.Context, *UpdateBlogRequest) (*UpdateBlogResponse, error)
- type UpdateBlogRequest
- type UpdateBlogResponse
Constants ¶
This section is empty.
Variables ¶
var File_blog_blogpb_blog_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBlogServiceServer ¶
func RegisterBlogServiceServer(s *grpc.Server, srv BlogServiceServer)
Types ¶
type Blog ¶
type Blog struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AuthorId string `protobuf:"bytes,2,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Blog) Descriptor
deprecated
func (*Blog) GetAuthorId ¶
func (*Blog) GetContent ¶
func (*Blog) ProtoMessage ¶
func (*Blog) ProtoMessage()
func (*Blog) ProtoReflect ¶
func (x *Blog) ProtoReflect() protoreflect.Message
type BlogServiceClient ¶
type BlogServiceClient interface { CreateBlog(ctx context.Context, in *CreateBlogRequest, opts ...grpc.CallOption) (*CreateBlogResponse, error) ReadBlog(ctx context.Context, in *ReadBlogRequest, opts ...grpc.CallOption) (*ReadBlogResponse, error) UpdateBlog(ctx context.Context, in *UpdateBlogRequest, opts ...grpc.CallOption) (*UpdateBlogResponse, error) DeleteBlog(ctx context.Context, in *DeleteBlogRequest, opts ...grpc.CallOption) (*DeleteBlogResponse, error) ListBlog(ctx context.Context, in *ListBlogRequest, opts ...grpc.CallOption) (BlogService_ListBlogClient, error) }
BlogServiceClient is the client API for BlogService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBlogServiceClient ¶
func NewBlogServiceClient(cc grpc.ClientConnInterface) BlogServiceClient
type BlogServiceServer ¶
type BlogServiceServer interface { CreateBlog(context.Context, *CreateBlogRequest) (*CreateBlogResponse, error) ReadBlog(context.Context, *ReadBlogRequest) (*ReadBlogResponse, error) UpdateBlog(context.Context, *UpdateBlogRequest) (*UpdateBlogResponse, error) DeleteBlog(context.Context, *DeleteBlogRequest) (*DeleteBlogResponse, error) ListBlog(*ListBlogRequest, BlogService_ListBlogServer) error }
BlogServiceServer is the server API for BlogService service.
type BlogService_ListBlogClient ¶
type BlogService_ListBlogClient interface { Recv() (*ListBlogResponse, error) grpc.ClientStream }
type BlogService_ListBlogServer ¶
type BlogService_ListBlogServer interface { Send(*ListBlogResponse) error grpc.ServerStream }
type CreateBlogRequest ¶
type CreateBlogRequest struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*CreateBlogRequest) Descriptor
deprecated
func (*CreateBlogRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlogRequest.ProtoReflect.Descriptor instead.
func (*CreateBlogRequest) GetBlog ¶
func (x *CreateBlogRequest) GetBlog() *Blog
func (*CreateBlogRequest) ProtoMessage ¶
func (*CreateBlogRequest) ProtoMessage()
func (*CreateBlogRequest) ProtoReflect ¶
func (x *CreateBlogRequest) ProtoReflect() protoreflect.Message
func (*CreateBlogRequest) Reset ¶
func (x *CreateBlogRequest) Reset()
func (*CreateBlogRequest) String ¶
func (x *CreateBlogRequest) String() string
type CreateBlogResponse ¶
type CreateBlogResponse struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*CreateBlogResponse) Descriptor
deprecated
func (*CreateBlogResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlogResponse.ProtoReflect.Descriptor instead.
func (*CreateBlogResponse) GetBlog ¶
func (x *CreateBlogResponse) GetBlog() *Blog
func (*CreateBlogResponse) ProtoMessage ¶
func (*CreateBlogResponse) ProtoMessage()
func (*CreateBlogResponse) ProtoReflect ¶
func (x *CreateBlogResponse) ProtoReflect() protoreflect.Message
func (*CreateBlogResponse) Reset ¶
func (x *CreateBlogResponse) Reset()
func (*CreateBlogResponse) String ¶
func (x *CreateBlogResponse) String() string
type DeleteBlogRequest ¶
type DeleteBlogRequest struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*DeleteBlogRequest) Descriptor
deprecated
func (*DeleteBlogRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBlogRequest.ProtoReflect.Descriptor instead.
func (*DeleteBlogRequest) GetBlog ¶
func (x *DeleteBlogRequest) GetBlog() *Blog
func (*DeleteBlogRequest) ProtoMessage ¶
func (*DeleteBlogRequest) ProtoMessage()
func (*DeleteBlogRequest) ProtoReflect ¶
func (x *DeleteBlogRequest) ProtoReflect() protoreflect.Message
func (*DeleteBlogRequest) Reset ¶
func (x *DeleteBlogRequest) Reset()
func (*DeleteBlogRequest) String ¶
func (x *DeleteBlogRequest) String() string
type DeleteBlogResponse ¶
type DeleteBlogResponse struct { BlogId string `protobuf:"bytes,1,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteBlogResponse) Descriptor
deprecated
func (*DeleteBlogResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBlogResponse.ProtoReflect.Descriptor instead.
func (*DeleteBlogResponse) GetBlogId ¶
func (x *DeleteBlogResponse) GetBlogId() string
func (*DeleteBlogResponse) ProtoMessage ¶
func (*DeleteBlogResponse) ProtoMessage()
func (*DeleteBlogResponse) ProtoReflect ¶
func (x *DeleteBlogResponse) ProtoReflect() protoreflect.Message
func (*DeleteBlogResponse) Reset ¶
func (x *DeleteBlogResponse) Reset()
func (*DeleteBlogResponse) String ¶
func (x *DeleteBlogResponse) String() string
type ListBlogRequest ¶
type ListBlogRequest struct {
// contains filtered or unexported fields
}
func (*ListBlogRequest) Descriptor
deprecated
func (*ListBlogRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBlogRequest.ProtoReflect.Descriptor instead.
func (*ListBlogRequest) ProtoMessage ¶
func (*ListBlogRequest) ProtoMessage()
func (*ListBlogRequest) ProtoReflect ¶
func (x *ListBlogRequest) ProtoReflect() protoreflect.Message
func (*ListBlogRequest) Reset ¶
func (x *ListBlogRequest) Reset()
func (*ListBlogRequest) String ¶
func (x *ListBlogRequest) String() string
type ListBlogResponse ¶
type ListBlogResponse struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*ListBlogResponse) Descriptor
deprecated
func (*ListBlogResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBlogResponse.ProtoReflect.Descriptor instead.
func (*ListBlogResponse) GetBlog ¶
func (x *ListBlogResponse) GetBlog() *Blog
func (*ListBlogResponse) ProtoMessage ¶
func (*ListBlogResponse) ProtoMessage()
func (*ListBlogResponse) ProtoReflect ¶
func (x *ListBlogResponse) ProtoReflect() protoreflect.Message
func (*ListBlogResponse) Reset ¶
func (x *ListBlogResponse) Reset()
func (*ListBlogResponse) String ¶
func (x *ListBlogResponse) String() string
type ReadBlogRequest ¶
type ReadBlogRequest struct { BlogId string `protobuf:"bytes,1,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"` // contains filtered or unexported fields }
func (*ReadBlogRequest) Descriptor
deprecated
func (*ReadBlogRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadBlogRequest.ProtoReflect.Descriptor instead.
func (*ReadBlogRequest) GetBlogId ¶
func (x *ReadBlogRequest) GetBlogId() string
func (*ReadBlogRequest) ProtoMessage ¶
func (*ReadBlogRequest) ProtoMessage()
func (*ReadBlogRequest) ProtoReflect ¶
func (x *ReadBlogRequest) ProtoReflect() protoreflect.Message
func (*ReadBlogRequest) Reset ¶
func (x *ReadBlogRequest) Reset()
func (*ReadBlogRequest) String ¶
func (x *ReadBlogRequest) String() string
type ReadBlogResponse ¶
type ReadBlogResponse struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*ReadBlogResponse) Descriptor
deprecated
func (*ReadBlogResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadBlogResponse.ProtoReflect.Descriptor instead.
func (*ReadBlogResponse) GetBlog ¶
func (x *ReadBlogResponse) GetBlog() *Blog
func (*ReadBlogResponse) ProtoMessage ¶
func (*ReadBlogResponse) ProtoMessage()
func (*ReadBlogResponse) ProtoReflect ¶
func (x *ReadBlogResponse) ProtoReflect() protoreflect.Message
func (*ReadBlogResponse) Reset ¶
func (x *ReadBlogResponse) Reset()
func (*ReadBlogResponse) String ¶
func (x *ReadBlogResponse) String() string
type UnimplementedBlogServiceServer ¶
type UnimplementedBlogServiceServer struct { }
UnimplementedBlogServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBlogServiceServer) CreateBlog ¶
func (*UnimplementedBlogServiceServer) CreateBlog(context.Context, *CreateBlogRequest) (*CreateBlogResponse, error)
func (*UnimplementedBlogServiceServer) DeleteBlog ¶
func (*UnimplementedBlogServiceServer) DeleteBlog(context.Context, *DeleteBlogRequest) (*DeleteBlogResponse, error)
func (*UnimplementedBlogServiceServer) ListBlog ¶
func (*UnimplementedBlogServiceServer) ListBlog(*ListBlogRequest, BlogService_ListBlogServer) error
func (*UnimplementedBlogServiceServer) ReadBlog ¶
func (*UnimplementedBlogServiceServer) ReadBlog(context.Context, *ReadBlogRequest) (*ReadBlogResponse, error)
func (*UnimplementedBlogServiceServer) UpdateBlog ¶
func (*UnimplementedBlogServiceServer) UpdateBlog(context.Context, *UpdateBlogRequest) (*UpdateBlogResponse, error)
type UpdateBlogRequest ¶
type UpdateBlogRequest struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*UpdateBlogRequest) Descriptor
deprecated
func (*UpdateBlogRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBlogRequest.ProtoReflect.Descriptor instead.
func (*UpdateBlogRequest) GetBlog ¶
func (x *UpdateBlogRequest) GetBlog() *Blog
func (*UpdateBlogRequest) ProtoMessage ¶
func (*UpdateBlogRequest) ProtoMessage()
func (*UpdateBlogRequest) ProtoReflect ¶
func (x *UpdateBlogRequest) ProtoReflect() protoreflect.Message
func (*UpdateBlogRequest) Reset ¶
func (x *UpdateBlogRequest) Reset()
func (*UpdateBlogRequest) String ¶
func (x *UpdateBlogRequest) String() string
type UpdateBlogResponse ¶
type UpdateBlogResponse struct { Blog *Blog `protobuf:"bytes,1,opt,name=blog,proto3" json:"blog,omitempty"` // contains filtered or unexported fields }
func (*UpdateBlogResponse) Descriptor
deprecated
func (*UpdateBlogResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBlogResponse.ProtoReflect.Descriptor instead.
func (*UpdateBlogResponse) GetBlog ¶
func (x *UpdateBlogResponse) GetBlog() *Blog
func (*UpdateBlogResponse) ProtoMessage ¶
func (*UpdateBlogResponse) ProtoMessage()
func (*UpdateBlogResponse) ProtoReflect ¶
func (x *UpdateBlogResponse) ProtoReflect() protoreflect.Message
func (*UpdateBlogResponse) Reset ¶
func (x *UpdateBlogResponse) Reset()
func (*UpdateBlogResponse) String ¶
func (x *UpdateBlogResponse) String() string