blogpb

package
v0.0.0-...-63d6532 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Blog.ProtoReflect.Descriptor instead.

func (*Blog) GetAuthorId

func (x *Blog) GetAuthorId() string

func (*Blog) GetContent

func (x *Blog) GetContent() string

func (*Blog) GetId

func (x *Blog) GetId() string

func (*Blog) GetTitle

func (x *Blog) GetTitle() string

func (*Blog) ProtoMessage

func (*Blog) ProtoMessage()

func (*Blog) ProtoReflect

func (x *Blog) ProtoReflect() protoreflect.Message

func (*Blog) Reset

func (x *Blog) Reset()

func (*Blog) String

func (x *Blog) String() string

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.

type BlogServiceServer

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) DeleteBlog

func (*UnimplementedBlogServiceServer) ListBlog

func (*UnimplementedBlogServiceServer) ReadBlog

func (*UnimplementedBlogServiceServer) UpdateBlog

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL