Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterBlogServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBlogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlogServiceClient) error
- func RegisterBlogServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBlogServiceServer(s *grpc.Server, srv BlogServiceServer)
- type Blog
- func (*Blog) Descriptor() ([]byte, []int)
- func (m *Blog) GetCreatedAt() *timestamp.Timestamp
- func (m *Blog) GetCreatorId() string
- func (m *Blog) GetDescription() string
- func (m *Blog) GetId() string
- func (m *Blog) GetTitle() string
- func (*Blog) ProtoMessage()
- func (m *Blog) Reset()
- func (m *Blog) String() string
- func (m *Blog) XXX_DiscardUnknown()
- func (m *Blog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Blog) XXX_Merge(src proto.Message)
- func (m *Blog) XXX_Size() int
- func (m *Blog) XXX_Unmarshal(b []byte) error
- type BlogServiceClient
- type BlogServiceServer
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetContent() string
- func (m *Comment) GetCreatedAt() *timestamp.Timestamp
- func (m *Comment) GetCreatorId() string
- func (m *Comment) GetId() string
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) String() string
- func (m *Comment) XXX_DiscardUnknown()
- func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comment) XXX_Merge(src proto.Message)
- func (m *Comment) XXX_Size() int
- func (m *Comment) XXX_Unmarshal(b []byte) error
- type CreateBlogRequest
- func (*CreateBlogRequest) Descriptor() ([]byte, []int)
- func (m *CreateBlogRequest) GetApi() string
- func (m *CreateBlogRequest) GetBlog() *Blog
- func (*CreateBlogRequest) ProtoMessage()
- func (m *CreateBlogRequest) Reset()
- func (m *CreateBlogRequest) String() string
- func (m *CreateBlogRequest) XXX_DiscardUnknown()
- func (m *CreateBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBlogRequest) XXX_Merge(src proto.Message)
- func (m *CreateBlogRequest) XXX_Size() int
- func (m *CreateBlogRequest) XXX_Unmarshal(b []byte) error
- type CreateBlogResponse
- func (*CreateBlogResponse) Descriptor() ([]byte, []int)
- func (m *CreateBlogResponse) GetApi() string
- func (m *CreateBlogResponse) GetId() string
- func (*CreateBlogResponse) ProtoMessage()
- func (m *CreateBlogResponse) Reset()
- func (m *CreateBlogResponse) String() string
- func (m *CreateBlogResponse) XXX_DiscardUnknown()
- func (m *CreateBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBlogResponse) XXX_Merge(src proto.Message)
- func (m *CreateBlogResponse) XXX_Size() int
- func (m *CreateBlogResponse) XXX_Unmarshal(b []byte) error
- type CreateCommentRequest
- func (*CreateCommentRequest) Descriptor() ([]byte, []int)
- func (m *CreateCommentRequest) GetApi() string
- func (m *CreateCommentRequest) GetComment() *Comment
- func (*CreateCommentRequest) ProtoMessage()
- func (m *CreateCommentRequest) Reset()
- func (m *CreateCommentRequest) String() string
- func (m *CreateCommentRequest) XXX_DiscardUnknown()
- func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCommentRequest) XXX_Merge(src proto.Message)
- func (m *CreateCommentRequest) XXX_Size() int
- func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error
- type CreateCommentResponse
- func (*CreateCommentResponse) Descriptor() ([]byte, []int)
- func (m *CreateCommentResponse) GetApi() string
- func (m *CreateCommentResponse) GetId() string
- func (*CreateCommentResponse) ProtoMessage()
- func (m *CreateCommentResponse) Reset()
- func (m *CreateCommentResponse) String() string
- func (m *CreateCommentResponse) XXX_DiscardUnknown()
- func (m *CreateCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCommentResponse) XXX_Merge(src proto.Message)
- func (m *CreateCommentResponse) XXX_Size() int
- func (m *CreateCommentResponse) XXX_Unmarshal(b []byte) error
- type DeleteBlogRequest
- func (*DeleteBlogRequest) Descriptor() ([]byte, []int)
- func (m *DeleteBlogRequest) GetApi() string
- func (m *DeleteBlogRequest) GetId() string
- func (*DeleteBlogRequest) ProtoMessage()
- func (m *DeleteBlogRequest) Reset()
- func (m *DeleteBlogRequest) String() string
- func (m *DeleteBlogRequest) XXX_DiscardUnknown()
- func (m *DeleteBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteBlogRequest) XXX_Merge(src proto.Message)
- func (m *DeleteBlogRequest) XXX_Size() int
- func (m *DeleteBlogRequest) XXX_Unmarshal(b []byte) error
- type DeleteBlogResponse
- func (*DeleteBlogResponse) Descriptor() ([]byte, []int)
- func (m *DeleteBlogResponse) GetApi() string
- func (m *DeleteBlogResponse) GetDeleted() int64
- func (*DeleteBlogResponse) ProtoMessage()
- func (m *DeleteBlogResponse) Reset()
- func (m *DeleteBlogResponse) String() string
- func (m *DeleteBlogResponse) XXX_DiscardUnknown()
- func (m *DeleteBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteBlogResponse) XXX_Merge(src proto.Message)
- func (m *DeleteBlogResponse) XXX_Size() int
- func (m *DeleteBlogResponse) XXX_Unmarshal(b []byte) error
- type DeleteCommentRequest
- func (*DeleteCommentRequest) Descriptor() ([]byte, []int)
- func (m *DeleteCommentRequest) GetApi() string
- func (m *DeleteCommentRequest) GetId() string
- func (*DeleteCommentRequest) ProtoMessage()
- func (m *DeleteCommentRequest) Reset()
- func (m *DeleteCommentRequest) String() string
- func (m *DeleteCommentRequest) XXX_DiscardUnknown()
- func (m *DeleteCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteCommentRequest) XXX_Merge(src proto.Message)
- func (m *DeleteCommentRequest) XXX_Size() int
- func (m *DeleteCommentRequest) XXX_Unmarshal(b []byte) error
- type DeleteCommentResponse
- func (*DeleteCommentResponse) Descriptor() ([]byte, []int)
- func (m *DeleteCommentResponse) GetApi() string
- func (m *DeleteCommentResponse) GetDeleted() int64
- func (*DeleteCommentResponse) ProtoMessage()
- func (m *DeleteCommentResponse) Reset()
- func (m *DeleteCommentResponse) String() string
- func (m *DeleteCommentResponse) XXX_DiscardUnknown()
- func (m *DeleteCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteCommentResponse) XXX_Merge(src proto.Message)
- func (m *DeleteCommentResponse) XXX_Size() int
- func (m *DeleteCommentResponse) XXX_Unmarshal(b []byte) error
- type ReadAllBlogRequest
- func (*ReadAllBlogRequest) Descriptor() ([]byte, []int)
- func (m *ReadAllBlogRequest) GetApi() string
- func (*ReadAllBlogRequest) ProtoMessage()
- func (m *ReadAllBlogRequest) Reset()
- func (m *ReadAllBlogRequest) String() string
- func (m *ReadAllBlogRequest) XXX_DiscardUnknown()
- func (m *ReadAllBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadAllBlogRequest) XXX_Merge(src proto.Message)
- func (m *ReadAllBlogRequest) XXX_Size() int
- func (m *ReadAllBlogRequest) XXX_Unmarshal(b []byte) error
- type ReadAllBlogResponse
- func (*ReadAllBlogResponse) Descriptor() ([]byte, []int)
- func (m *ReadAllBlogResponse) GetApi() string
- func (m *ReadAllBlogResponse) GetBlogs() []*Blog
- func (*ReadAllBlogResponse) ProtoMessage()
- func (m *ReadAllBlogResponse) Reset()
- func (m *ReadAllBlogResponse) String() string
- func (m *ReadAllBlogResponse) XXX_DiscardUnknown()
- func (m *ReadAllBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadAllBlogResponse) XXX_Merge(src proto.Message)
- func (m *ReadAllBlogResponse) XXX_Size() int
- func (m *ReadAllBlogResponse) XXX_Unmarshal(b []byte) error
- type ReadAllCommentRequest
- func (*ReadAllCommentRequest) Descriptor() ([]byte, []int)
- func (m *ReadAllCommentRequest) GetApi() string
- func (m *ReadAllCommentRequest) GetBlogId() string
- func (*ReadAllCommentRequest) ProtoMessage()
- func (m *ReadAllCommentRequest) Reset()
- func (m *ReadAllCommentRequest) String() string
- func (m *ReadAllCommentRequest) XXX_DiscardUnknown()
- func (m *ReadAllCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadAllCommentRequest) XXX_Merge(src proto.Message)
- func (m *ReadAllCommentRequest) XXX_Size() int
- func (m *ReadAllCommentRequest) XXX_Unmarshal(b []byte) error
- type ReadAllCommentResponse
- func (*ReadAllCommentResponse) Descriptor() ([]byte, []int)
- func (m *ReadAllCommentResponse) GetApi() string
- func (m *ReadAllCommentResponse) GetComments() []*Comment
- func (*ReadAllCommentResponse) ProtoMessage()
- func (m *ReadAllCommentResponse) Reset()
- func (m *ReadAllCommentResponse) String() string
- func (m *ReadAllCommentResponse) XXX_DiscardUnknown()
- func (m *ReadAllCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadAllCommentResponse) XXX_Merge(src proto.Message)
- func (m *ReadAllCommentResponse) XXX_Size() int
- func (m *ReadAllCommentResponse) XXX_Unmarshal(b []byte) error
- type ReadBlogRequest
- func (*ReadBlogRequest) Descriptor() ([]byte, []int)
- func (m *ReadBlogRequest) GetApi() string
- func (m *ReadBlogRequest) GetId() string
- func (*ReadBlogRequest) ProtoMessage()
- func (m *ReadBlogRequest) Reset()
- func (m *ReadBlogRequest) String() string
- func (m *ReadBlogRequest) XXX_DiscardUnknown()
- func (m *ReadBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadBlogRequest) XXX_Merge(src proto.Message)
- func (m *ReadBlogRequest) XXX_Size() int
- func (m *ReadBlogRequest) XXX_Unmarshal(b []byte) error
- type ReadBlogResponse
- func (*ReadBlogResponse) Descriptor() ([]byte, []int)
- func (m *ReadBlogResponse) GetApi() string
- func (m *ReadBlogResponse) GetBlogs() *Blog
- func (*ReadBlogResponse) ProtoMessage()
- func (m *ReadBlogResponse) Reset()
- func (m *ReadBlogResponse) String() string
- func (m *ReadBlogResponse) XXX_DiscardUnknown()
- func (m *ReadBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadBlogResponse) XXX_Merge(src proto.Message)
- func (m *ReadBlogResponse) XXX_Size() int
- func (m *ReadBlogResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBlogServiceHandler ¶
func RegisterBlogServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBlogServiceHandler registers the http handlers for service BlogService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBlogServiceHandlerClient ¶
func RegisterBlogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlogServiceClient) error
RegisterBlogServiceHandlerClient registers the http handlers for service BlogService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BlogServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BlogServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BlogServiceClient" to call the correct interceptors.
func RegisterBlogServiceHandlerFromEndpoint ¶
func RegisterBlogServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBlogServiceHandlerFromEndpoint is same as RegisterBlogServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBlogServiceServer ¶
func RegisterBlogServiceServer(s *grpc.Server, srv BlogServiceServer)
Types ¶
type Blog ¶
type Blog struct { // Unique string identifier of the blog Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Title of the blog Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Detail description of the blog Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Creator CreatorId string `protobuf:"bytes,4,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` // createdAt CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Task we have to do
func (*Blog) Descriptor ¶
func (*Blog) GetCreatedAt ¶
func (*Blog) GetCreatorId ¶
func (*Blog) GetDescription ¶
func (*Blog) ProtoMessage ¶
func (*Blog) ProtoMessage()
func (*Blog) XXX_DiscardUnknown ¶
func (m *Blog) XXX_DiscardUnknown()
func (*Blog) XXX_Unmarshal ¶
type BlogServiceClient ¶
type BlogServiceClient interface { // Read all blog ReadAllBlog(ctx context.Context, in *ReadAllBlogRequest, opts ...grpc.CallOption) (*ReadAllBlogResponse, error) // Create new blog CreateBlog(ctx context.Context, in *CreateBlogRequest, opts ...grpc.CallOption) (*CreateBlogResponse, error) // Read blog ReadBlog(ctx context.Context, in *ReadBlogRequest, opts ...grpc.CallOption) (*ReadBlogResponse, error) // Delete blog DeleteBlog(ctx context.Context, in *DeleteBlogRequest, opts ...grpc.CallOption) (*DeleteBlogResponse, error) // Read all comment ReadAllComment(ctx context.Context, in *ReadAllCommentRequest, opts ...grpc.CallOption) (*ReadAllCommentResponse, error) // Create new comment CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentResponse, error) // Delete comment DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentResponse, 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.ClientConn) BlogServiceClient
type BlogServiceServer ¶
type BlogServiceServer interface { // Read all blog ReadAllBlog(context.Context, *ReadAllBlogRequest) (*ReadAllBlogResponse, error) // Create new blog CreateBlog(context.Context, *CreateBlogRequest) (*CreateBlogResponse, error) // Read blog ReadBlog(context.Context, *ReadBlogRequest) (*ReadBlogResponse, error) // Delete blog DeleteBlog(context.Context, *DeleteBlogRequest) (*DeleteBlogResponse, error) // Read all comment ReadAllComment(context.Context, *ReadAllCommentRequest) (*ReadAllCommentResponse, error) // Create new comment CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error) // Delete comment DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentResponse, error) }
BlogServiceServer is the server API for BlogService service.
type Comment ¶
type Comment struct { // Unique string identifier of the blog Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // comment content Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Creator CreatorId string `protobuf:"bytes,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` // createdAt CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Task we have to do
func (*Comment) Descriptor ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreatedAt ¶
func (*Comment) GetCreatorId ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) XXX_DiscardUnknown ¶
func (m *Comment) XXX_DiscardUnknown()
func (*Comment) XXX_Marshal ¶
func (*Comment) XXX_Unmarshal ¶
type CreateBlogRequest ¶
type CreateBlogRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Task entity to add Blog *Blog `protobuf:"bytes,2,opt,name=blog,proto3" json:"blog,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to create new blog
func (*CreateBlogRequest) Descriptor ¶
func (*CreateBlogRequest) Descriptor() ([]byte, []int)
func (*CreateBlogRequest) GetApi ¶
func (m *CreateBlogRequest) GetApi() string
func (*CreateBlogRequest) GetBlog ¶
func (m *CreateBlogRequest) GetBlog() *Blog
func (*CreateBlogRequest) ProtoMessage ¶
func (*CreateBlogRequest) ProtoMessage()
func (*CreateBlogRequest) Reset ¶
func (m *CreateBlogRequest) Reset()
func (*CreateBlogRequest) String ¶
func (m *CreateBlogRequest) String() string
func (*CreateBlogRequest) XXX_DiscardUnknown ¶
func (m *CreateBlogRequest) XXX_DiscardUnknown()
func (*CreateBlogRequest) XXX_Marshal ¶
func (m *CreateBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBlogRequest) XXX_Merge ¶
func (m *CreateBlogRequest) XXX_Merge(src proto.Message)
func (*CreateBlogRequest) XXX_Size ¶
func (m *CreateBlogRequest) XXX_Size() int
func (*CreateBlogRequest) XXX_Unmarshal ¶
func (m *CreateBlogRequest) XXX_Unmarshal(b []byte) error
type CreateBlogResponse ¶
type CreateBlogResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // ID of created task Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains data of created blog
func (*CreateBlogResponse) Descriptor ¶
func (*CreateBlogResponse) Descriptor() ([]byte, []int)
func (*CreateBlogResponse) GetApi ¶
func (m *CreateBlogResponse) GetApi() string
func (*CreateBlogResponse) GetId ¶
func (m *CreateBlogResponse) GetId() string
func (*CreateBlogResponse) ProtoMessage ¶
func (*CreateBlogResponse) ProtoMessage()
func (*CreateBlogResponse) Reset ¶
func (m *CreateBlogResponse) Reset()
func (*CreateBlogResponse) String ¶
func (m *CreateBlogResponse) String() string
func (*CreateBlogResponse) XXX_DiscardUnknown ¶
func (m *CreateBlogResponse) XXX_DiscardUnknown()
func (*CreateBlogResponse) XXX_Marshal ¶
func (m *CreateBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBlogResponse) XXX_Merge ¶
func (m *CreateBlogResponse) XXX_Merge(src proto.Message)
func (*CreateBlogResponse) XXX_Size ¶
func (m *CreateBlogResponse) XXX_Size() int
func (*CreateBlogResponse) XXX_Unmarshal ¶
func (m *CreateBlogResponse) XXX_Unmarshal(b []byte) error
type CreateCommentRequest ¶
type CreateCommentRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Task entity to add Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to create new blog
func (*CreateCommentRequest) Descriptor ¶
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
func (*CreateCommentRequest) GetApi ¶
func (m *CreateCommentRequest) GetApi() string
func (*CreateCommentRequest) GetComment ¶
func (m *CreateCommentRequest) GetComment() *Comment
func (*CreateCommentRequest) ProtoMessage ¶
func (*CreateCommentRequest) ProtoMessage()
func (*CreateCommentRequest) Reset ¶
func (m *CreateCommentRequest) Reset()
func (*CreateCommentRequest) String ¶
func (m *CreateCommentRequest) String() string
func (*CreateCommentRequest) XXX_DiscardUnknown ¶
func (m *CreateCommentRequest) XXX_DiscardUnknown()
func (*CreateCommentRequest) XXX_Marshal ¶
func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCommentRequest) XXX_Merge ¶
func (m *CreateCommentRequest) XXX_Merge(src proto.Message)
func (*CreateCommentRequest) XXX_Size ¶
func (m *CreateCommentRequest) XXX_Size() int
func (*CreateCommentRequest) XXX_Unmarshal ¶
func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error
type CreateCommentResponse ¶
type CreateCommentResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // ID of created task Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains data of created blog
func (*CreateCommentResponse) Descriptor ¶
func (*CreateCommentResponse) Descriptor() ([]byte, []int)
func (*CreateCommentResponse) GetApi ¶
func (m *CreateCommentResponse) GetApi() string
func (*CreateCommentResponse) GetId ¶
func (m *CreateCommentResponse) GetId() string
func (*CreateCommentResponse) ProtoMessage ¶
func (*CreateCommentResponse) ProtoMessage()
func (*CreateCommentResponse) Reset ¶
func (m *CreateCommentResponse) Reset()
func (*CreateCommentResponse) String ¶
func (m *CreateCommentResponse) String() string
func (*CreateCommentResponse) XXX_DiscardUnknown ¶
func (m *CreateCommentResponse) XXX_DiscardUnknown()
func (*CreateCommentResponse) XXX_Marshal ¶
func (m *CreateCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCommentResponse) XXX_Merge ¶
func (m *CreateCommentResponse) XXX_Merge(src proto.Message)
func (*CreateCommentResponse) XXX_Size ¶
func (m *CreateCommentResponse) XXX_Size() int
func (*CreateCommentResponse) XXX_Unmarshal ¶
func (m *CreateCommentResponse) XXX_Unmarshal(b []byte) error
type DeleteBlogRequest ¶
type DeleteBlogRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Unique string identifier of the blog to delete Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to delete blog
func (*DeleteBlogRequest) Descriptor ¶
func (*DeleteBlogRequest) Descriptor() ([]byte, []int)
func (*DeleteBlogRequest) GetApi ¶
func (m *DeleteBlogRequest) GetApi() string
func (*DeleteBlogRequest) GetId ¶
func (m *DeleteBlogRequest) GetId() string
func (*DeleteBlogRequest) ProtoMessage ¶
func (*DeleteBlogRequest) ProtoMessage()
func (*DeleteBlogRequest) Reset ¶
func (m *DeleteBlogRequest) Reset()
func (*DeleteBlogRequest) String ¶
func (m *DeleteBlogRequest) String() string
func (*DeleteBlogRequest) XXX_DiscardUnknown ¶
func (m *DeleteBlogRequest) XXX_DiscardUnknown()
func (*DeleteBlogRequest) XXX_Marshal ¶
func (m *DeleteBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteBlogRequest) XXX_Merge ¶
func (m *DeleteBlogRequest) XXX_Merge(src proto.Message)
func (*DeleteBlogRequest) XXX_Size ¶
func (m *DeleteBlogRequest) XXX_Size() int
func (*DeleteBlogRequest) XXX_Unmarshal ¶
func (m *DeleteBlogRequest) XXX_Unmarshal(b []byte) error
type DeleteBlogResponse ¶
type DeleteBlogResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Contains number of entities have beed deleted // Equals 1 in case of succesfull delete Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains status of delete operation
func (*DeleteBlogResponse) Descriptor ¶
func (*DeleteBlogResponse) Descriptor() ([]byte, []int)
func (*DeleteBlogResponse) GetApi ¶
func (m *DeleteBlogResponse) GetApi() string
func (*DeleteBlogResponse) GetDeleted ¶
func (m *DeleteBlogResponse) GetDeleted() int64
func (*DeleteBlogResponse) ProtoMessage ¶
func (*DeleteBlogResponse) ProtoMessage()
func (*DeleteBlogResponse) Reset ¶
func (m *DeleteBlogResponse) Reset()
func (*DeleteBlogResponse) String ¶
func (m *DeleteBlogResponse) String() string
func (*DeleteBlogResponse) XXX_DiscardUnknown ¶
func (m *DeleteBlogResponse) XXX_DiscardUnknown()
func (*DeleteBlogResponse) XXX_Marshal ¶
func (m *DeleteBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteBlogResponse) XXX_Merge ¶
func (m *DeleteBlogResponse) XXX_Merge(src proto.Message)
func (*DeleteBlogResponse) XXX_Size ¶
func (m *DeleteBlogResponse) XXX_Size() int
func (*DeleteBlogResponse) XXX_Unmarshal ¶
func (m *DeleteBlogResponse) XXX_Unmarshal(b []byte) error
type DeleteCommentRequest ¶
type DeleteCommentRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Unique string identifier of the comment to delete Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to delete comment
func (*DeleteCommentRequest) Descriptor ¶
func (*DeleteCommentRequest) Descriptor() ([]byte, []int)
func (*DeleteCommentRequest) GetApi ¶
func (m *DeleteCommentRequest) GetApi() string
func (*DeleteCommentRequest) GetId ¶
func (m *DeleteCommentRequest) GetId() string
func (*DeleteCommentRequest) ProtoMessage ¶
func (*DeleteCommentRequest) ProtoMessage()
func (*DeleteCommentRequest) Reset ¶
func (m *DeleteCommentRequest) Reset()
func (*DeleteCommentRequest) String ¶
func (m *DeleteCommentRequest) String() string
func (*DeleteCommentRequest) XXX_DiscardUnknown ¶
func (m *DeleteCommentRequest) XXX_DiscardUnknown()
func (*DeleteCommentRequest) XXX_Marshal ¶
func (m *DeleteCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteCommentRequest) XXX_Merge ¶
func (m *DeleteCommentRequest) XXX_Merge(src proto.Message)
func (*DeleteCommentRequest) XXX_Size ¶
func (m *DeleteCommentRequest) XXX_Size() int
func (*DeleteCommentRequest) XXX_Unmarshal ¶
func (m *DeleteCommentRequest) XXX_Unmarshal(b []byte) error
type DeleteCommentResponse ¶
type DeleteCommentResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Contains number of entities have beed deleted // Equals 1 in case of succesfull delete Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains status of delete operation
func (*DeleteCommentResponse) Descriptor ¶
func (*DeleteCommentResponse) Descriptor() ([]byte, []int)
func (*DeleteCommentResponse) GetApi ¶
func (m *DeleteCommentResponse) GetApi() string
func (*DeleteCommentResponse) GetDeleted ¶
func (m *DeleteCommentResponse) GetDeleted() int64
func (*DeleteCommentResponse) ProtoMessage ¶
func (*DeleteCommentResponse) ProtoMessage()
func (*DeleteCommentResponse) Reset ¶
func (m *DeleteCommentResponse) Reset()
func (*DeleteCommentResponse) String ¶
func (m *DeleteCommentResponse) String() string
func (*DeleteCommentResponse) XXX_DiscardUnknown ¶
func (m *DeleteCommentResponse) XXX_DiscardUnknown()
func (*DeleteCommentResponse) XXX_Marshal ¶
func (m *DeleteCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteCommentResponse) XXX_Merge ¶
func (m *DeleteCommentResponse) XXX_Merge(src proto.Message)
func (*DeleteCommentResponse) XXX_Size ¶
func (m *DeleteCommentResponse) XXX_Size() int
func (*DeleteCommentResponse) XXX_Unmarshal ¶
func (m *DeleteCommentResponse) XXX_Unmarshal(b []byte) error
type ReadAllBlogRequest ¶
type ReadAllBlogRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to read all blog
func (*ReadAllBlogRequest) Descriptor ¶
func (*ReadAllBlogRequest) Descriptor() ([]byte, []int)
func (*ReadAllBlogRequest) GetApi ¶
func (m *ReadAllBlogRequest) GetApi() string
func (*ReadAllBlogRequest) ProtoMessage ¶
func (*ReadAllBlogRequest) ProtoMessage()
func (*ReadAllBlogRequest) Reset ¶
func (m *ReadAllBlogRequest) Reset()
func (*ReadAllBlogRequest) String ¶
func (m *ReadAllBlogRequest) String() string
func (*ReadAllBlogRequest) XXX_DiscardUnknown ¶
func (m *ReadAllBlogRequest) XXX_DiscardUnknown()
func (*ReadAllBlogRequest) XXX_Marshal ¶
func (m *ReadAllBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadAllBlogRequest) XXX_Merge ¶
func (m *ReadAllBlogRequest) XXX_Merge(src proto.Message)
func (*ReadAllBlogRequest) XXX_Size ¶
func (m *ReadAllBlogRequest) XXX_Size() int
func (*ReadAllBlogRequest) XXX_Unmarshal ¶
func (m *ReadAllBlogRequest) XXX_Unmarshal(b []byte) error
type ReadAllBlogResponse ¶
type ReadAllBlogResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // List of all blog Blogs []*Blog `protobuf:"bytes,2,rep,name=blogs,proto3" json:"blogs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains list of all blog
func (*ReadAllBlogResponse) Descriptor ¶
func (*ReadAllBlogResponse) Descriptor() ([]byte, []int)
func (*ReadAllBlogResponse) GetApi ¶
func (m *ReadAllBlogResponse) GetApi() string
func (*ReadAllBlogResponse) GetBlogs ¶
func (m *ReadAllBlogResponse) GetBlogs() []*Blog
func (*ReadAllBlogResponse) ProtoMessage ¶
func (*ReadAllBlogResponse) ProtoMessage()
func (*ReadAllBlogResponse) Reset ¶
func (m *ReadAllBlogResponse) Reset()
func (*ReadAllBlogResponse) String ¶
func (m *ReadAllBlogResponse) String() string
func (*ReadAllBlogResponse) XXX_DiscardUnknown ¶
func (m *ReadAllBlogResponse) XXX_DiscardUnknown()
func (*ReadAllBlogResponse) XXX_Marshal ¶
func (m *ReadAllBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadAllBlogResponse) XXX_Merge ¶
func (m *ReadAllBlogResponse) XXX_Merge(src proto.Message)
func (*ReadAllBlogResponse) XXX_Size ¶
func (m *ReadAllBlogResponse) XXX_Size() int
func (*ReadAllBlogResponse) XXX_Unmarshal ¶
func (m *ReadAllBlogResponse) XXX_Unmarshal(b []byte) error
type ReadAllCommentRequest ¶
type ReadAllCommentRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` BlogId string `protobuf:"bytes,2,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to read all blog
func (*ReadAllCommentRequest) Descriptor ¶
func (*ReadAllCommentRequest) Descriptor() ([]byte, []int)
func (*ReadAllCommentRequest) GetApi ¶
func (m *ReadAllCommentRequest) GetApi() string
func (*ReadAllCommentRequest) GetBlogId ¶
func (m *ReadAllCommentRequest) GetBlogId() string
func (*ReadAllCommentRequest) ProtoMessage ¶
func (*ReadAllCommentRequest) ProtoMessage()
func (*ReadAllCommentRequest) Reset ¶
func (m *ReadAllCommentRequest) Reset()
func (*ReadAllCommentRequest) String ¶
func (m *ReadAllCommentRequest) String() string
func (*ReadAllCommentRequest) XXX_DiscardUnknown ¶
func (m *ReadAllCommentRequest) XXX_DiscardUnknown()
func (*ReadAllCommentRequest) XXX_Marshal ¶
func (m *ReadAllCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadAllCommentRequest) XXX_Merge ¶
func (m *ReadAllCommentRequest) XXX_Merge(src proto.Message)
func (*ReadAllCommentRequest) XXX_Size ¶
func (m *ReadAllCommentRequest) XXX_Size() int
func (*ReadAllCommentRequest) XXX_Unmarshal ¶
func (m *ReadAllCommentRequest) XXX_Unmarshal(b []byte) error
type ReadAllCommentResponse ¶
type ReadAllCommentResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // List of all blog Comments []*Comment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains list of all blog
func (*ReadAllCommentResponse) Descriptor ¶
func (*ReadAllCommentResponse) Descriptor() ([]byte, []int)
func (*ReadAllCommentResponse) GetApi ¶
func (m *ReadAllCommentResponse) GetApi() string
func (*ReadAllCommentResponse) GetComments ¶
func (m *ReadAllCommentResponse) GetComments() []*Comment
func (*ReadAllCommentResponse) ProtoMessage ¶
func (*ReadAllCommentResponse) ProtoMessage()
func (*ReadAllCommentResponse) Reset ¶
func (m *ReadAllCommentResponse) Reset()
func (*ReadAllCommentResponse) String ¶
func (m *ReadAllCommentResponse) String() string
func (*ReadAllCommentResponse) XXX_DiscardUnknown ¶
func (m *ReadAllCommentResponse) XXX_DiscardUnknown()
func (*ReadAllCommentResponse) XXX_Marshal ¶
func (m *ReadAllCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadAllCommentResponse) XXX_Merge ¶
func (m *ReadAllCommentResponse) XXX_Merge(src proto.Message)
func (*ReadAllCommentResponse) XXX_Size ¶
func (m *ReadAllCommentResponse) XXX_Size() int
func (*ReadAllCommentResponse) XXX_Unmarshal ¶
func (m *ReadAllCommentResponse) XXX_Unmarshal(b []byte) error
type ReadBlogRequest ¶
type ReadBlogRequest struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Unique string identifier of the blog Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request data to read blog
func (*ReadBlogRequest) Descriptor ¶
func (*ReadBlogRequest) Descriptor() ([]byte, []int)
func (*ReadBlogRequest) GetApi ¶
func (m *ReadBlogRequest) GetApi() string
func (*ReadBlogRequest) GetId ¶
func (m *ReadBlogRequest) GetId() string
func (*ReadBlogRequest) ProtoMessage ¶
func (*ReadBlogRequest) ProtoMessage()
func (*ReadBlogRequest) Reset ¶
func (m *ReadBlogRequest) Reset()
func (*ReadBlogRequest) String ¶
func (m *ReadBlogRequest) String() string
func (*ReadBlogRequest) XXX_DiscardUnknown ¶
func (m *ReadBlogRequest) XXX_DiscardUnknown()
func (*ReadBlogRequest) XXX_Marshal ¶
func (m *ReadBlogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadBlogRequest) XXX_Merge ¶
func (m *ReadBlogRequest) XXX_Merge(src proto.Message)
func (*ReadBlogRequest) XXX_Size ¶
func (m *ReadBlogRequest) XXX_Size() int
func (*ReadBlogRequest) XXX_Unmarshal ¶
func (m *ReadBlogRequest) XXX_Unmarshal(b []byte) error
type ReadBlogResponse ¶
type ReadBlogResponse struct { // API versioning: it is my best practice to specify version explicitly Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Task entity read by ID Blogs *Blog `protobuf:"bytes,2,opt,name=blogs,proto3" json:"blogs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains blog data specified in by ID request
func (*ReadBlogResponse) Descriptor ¶
func (*ReadBlogResponse) Descriptor() ([]byte, []int)
func (*ReadBlogResponse) GetApi ¶
func (m *ReadBlogResponse) GetApi() string
func (*ReadBlogResponse) GetBlogs ¶
func (m *ReadBlogResponse) GetBlogs() *Blog
func (*ReadBlogResponse) ProtoMessage ¶
func (*ReadBlogResponse) ProtoMessage()
func (*ReadBlogResponse) Reset ¶
func (m *ReadBlogResponse) Reset()
func (*ReadBlogResponse) String ¶
func (m *ReadBlogResponse) String() string
func (*ReadBlogResponse) XXX_DiscardUnknown ¶
func (m *ReadBlogResponse) XXX_DiscardUnknown()
func (*ReadBlogResponse) XXX_Marshal ¶
func (m *ReadBlogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadBlogResponse) XXX_Merge ¶
func (m *ReadBlogResponse) XXX_Merge(src proto.Message)
func (*ReadBlogResponse) XXX_Size ¶
func (m *ReadBlogResponse) XXX_Size() int
func (*ReadBlogResponse) XXX_Unmarshal ¶
func (m *ReadBlogResponse) XXX_Unmarshal(b []byte) error