Documentation ¶
Index ¶
- Variables
- func RegisterBlogServer(s *grpc.Server, srv BlogServer)
- type BlogClient
- type BlogServer
- type CreatePostReply
- func (*CreatePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostReply) GetMessage() string
- func (x *CreatePostReply) GetStatus() string
- func (*CreatePostReply) ProtoMessage()
- func (x *CreatePostReply) ProtoReflect() protoreflect.Message
- func (x *CreatePostReply) Reset()
- func (x *CreatePostReply) String() string
- type CreatePostRequest
- func (*CreatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostRequest) GetDescription() string
- func (x *CreatePostRequest) GetMedias() []uint64
- func (x *CreatePostRequest) GetParams() []*Query
- func (x *CreatePostRequest) GetSlug() string
- func (x *CreatePostRequest) GetStatus() string
- func (x *CreatePostRequest) GetTags() []uint64
- func (x *CreatePostRequest) GetText() string
- func (x *CreatePostRequest) GetTitle() string
- func (x *CreatePostRequest) GetToken() string
- func (x *CreatePostRequest) GetUserID() uint64
- func (*CreatePostRequest) ProtoMessage()
- func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePostRequest) Reset()
- func (x *CreatePostRequest) String() string
- type CreateTagReply
- func (*CreateTagReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTagReply) GetMessage() string
- func (x *CreateTagReply) GetStatus() string
- func (*CreateTagReply) ProtoMessage()
- func (x *CreateTagReply) ProtoReflect() protoreflect.Message
- func (x *CreateTagReply) Reset()
- func (x *CreateTagReply) String() string
- type CreateTagRequest
- func (*CreateTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTagRequest) GetName() string
- func (x *CreateTagRequest) GetToken() string
- func (*CreateTagRequest) ProtoMessage()
- func (x *CreateTagRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTagRequest) Reset()
- func (x *CreateTagRequest) String() string
- type DeletePostReply
- func (*DeletePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostReply) GetMessage() string
- func (x *DeletePostReply) GetStatus() string
- func (*DeletePostReply) ProtoMessage()
- func (x *DeletePostReply) ProtoReflect() protoreflect.Message
- func (x *DeletePostReply) Reset()
- func (x *DeletePostReply) String() string
- type DeletePostRequest
- func (*DeletePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostRequest) GetFilter() []*Query
- func (x *DeletePostRequest) GetToken() string
- func (*DeletePostRequest) ProtoMessage()
- func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePostRequest) Reset()
- func (x *DeletePostRequest) String() string
- type DeleteTagReply
- func (*DeleteTagReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTagReply) GetMessage() string
- func (x *DeleteTagReply) GetStatus() string
- func (*DeleteTagReply) ProtoMessage()
- func (x *DeleteTagReply) ProtoReflect() protoreflect.Message
- func (x *DeleteTagReply) Reset()
- func (x *DeleteTagReply) String() string
- type DeleteTagRequest
- func (*DeleteTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTagRequest) GetName() string
- func (x *DeleteTagRequest) GetToken() string
- func (*DeleteTagRequest) ProtoMessage()
- func (x *DeleteTagRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTagRequest) Reset()
- func (x *DeleteTagRequest) String() string
- type GetPostReply
- func (*GetPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostReply) GetMessage() string
- func (x *GetPostReply) GetPosts() []*Posts
- func (x *GetPostReply) GetStatus() string
- func (*GetPostReply) ProtoMessage()
- func (x *GetPostReply) ProtoReflect() protoreflect.Message
- func (x *GetPostReply) Reset()
- func (x *GetPostReply) String() string
- type GetPostRequest
- func (*GetPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostRequest) GetFilter() []*Query
- func (x *GetPostRequest) GetMust() []*Query
- func (x *GetPostRequest) GetNot() []*Query
- func (x *GetPostRequest) GetShould() []*Query
- func (x *GetPostRequest) GetToken() string
- func (*GetPostRequest) ProtoMessage()
- func (x *GetPostRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostRequest) Reset()
- func (x *GetPostRequest) String() string
- type GetTagReply
- func (*GetTagReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetTagReply) GetMessage() string
- func (x *GetTagReply) GetStatus() string
- func (x *GetTagReply) GetTags() []string
- func (*GetTagReply) ProtoMessage()
- func (x *GetTagReply) ProtoReflect() protoreflect.Message
- func (x *GetTagReply) Reset()
- func (x *GetTagReply) String() string
- type GetTagRequest
- func (*GetTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTagRequest) GetFilter() []*Query
- func (x *GetTagRequest) GetToken() string
- func (*GetTagRequest) ProtoMessage()
- func (x *GetTagRequest) ProtoReflect() protoreflect.Message
- func (x *GetTagRequest) Reset()
- func (x *GetTagRequest) String() string
- type Media
- func (*Media) Descriptor() ([]byte, []int)deprecated
- func (x *Media) GetDescription() string
- func (x *Media) GetTitle() string
- func (x *Media) GetType() string
- func (x *Media) GetUrl() string
- func (*Media) ProtoMessage()
- func (x *Media) ProtoReflect() protoreflect.Message
- func (x *Media) Reset()
- func (x *Media) String() string
- type Posts
- func (*Posts) Descriptor() ([]byte, []int)deprecated
- func (x *Posts) GetDescription() string
- func (x *Posts) GetMedias() []*Media
- func (x *Posts) GetParams() []*Query
- func (x *Posts) GetPublishedAT() string
- func (x *Posts) GetSlug() string
- func (x *Posts) GetStatus() string
- func (x *Posts) GetTags() []*Tag
- func (x *Posts) GetText() string
- func (x *Posts) GetTitle() string
- func (*Posts) ProtoMessage()
- func (x *Posts) ProtoReflect() protoreflect.Message
- func (x *Posts) Reset()
- func (x *Posts) String() string
- type Query
- type Tag
- type UnimplementedBlogServer
- func (*UnimplementedBlogServer) CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error)
- func (*UnimplementedBlogServer) CreateTag(context.Context, *CreateTagRequest) (*CreateTagReply, error)
- func (*UnimplementedBlogServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
- func (*UnimplementedBlogServer) DeleteTag(context.Context, *DeleteTagRequest) (*DeleteTagReply, error)
- func (*UnimplementedBlogServer) GetPost(context.Context, *GetPostRequest) (*GetPostReply, error)
- func (*UnimplementedBlogServer) GetTag(context.Context, *GetTagRequest) (*GetTagReply, error)
- func (*UnimplementedBlogServer) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error)
- func (*UnimplementedBlogServer) UpdateTag(context.Context, *UpdateTagRequest) (*UpdateTagReply, error)
- func (*UnimplementedBlogServer) Upload(context.Context, *UploadRequest) (*UploadReply, error)
- type UpdatePostReply
- func (*UpdatePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostReply) GetMessage() string
- func (x *UpdatePostReply) GetStatus() string
- func (*UpdatePostReply) ProtoMessage()
- func (x *UpdatePostReply) ProtoReflect() protoreflect.Message
- func (x *UpdatePostReply) Reset()
- func (x *UpdatePostReply) String() string
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetDescription() string
- func (x *UpdatePostRequest) GetMedias() []uint64
- func (x *UpdatePostRequest) GetParams() []*Query
- func (x *UpdatePostRequest) GetSlug() string
- func (x *UpdatePostRequest) GetStatus() string
- func (x *UpdatePostRequest) GetTags() []uint64
- func (x *UpdatePostRequest) GetText() string
- func (x *UpdatePostRequest) GetTitle() string
- func (x *UpdatePostRequest) GetToken() string
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
- type UpdateTagReply
- func (*UpdateTagReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTagReply) GetMessage() string
- func (x *UpdateTagReply) GetStatus() string
- func (*UpdateTagReply) ProtoMessage()
- func (x *UpdateTagReply) ProtoReflect() protoreflect.Message
- func (x *UpdateTagReply) Reset()
- func (x *UpdateTagReply) String() string
- type UpdateTagRequest
- func (*UpdateTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTagRequest) GetNewName() string
- func (x *UpdateTagRequest) GetOldName() string
- func (x *UpdateTagRequest) GetToken() string
- func (*UpdateTagRequest) ProtoMessage()
- func (x *UpdateTagRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTagRequest) Reset()
- func (x *UpdateTagRequest) String() string
- type UploadReply
- func (*UploadReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadReply) GetMessage() string
- func (x *UploadReply) GetStatus() string
- func (*UploadReply) ProtoMessage()
- func (x *UploadReply) ProtoReflect() protoreflect.Message
- func (x *UploadReply) Reset()
- func (x *UploadReply) String() string
- type UploadRequest
- func (*UploadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadRequest) GetData() []byte
- func (x *UploadRequest) GetDescription() string
- func (x *UploadRequest) GetFileType() string
- func (x *UploadRequest) GetTitle() string
- func (x *UploadRequest) GetToken() string
- func (*UploadRequest) ProtoMessage()
- func (x *UploadRequest) ProtoReflect() protoreflect.Message
- func (x *UploadRequest) Reset()
- func (x *UploadRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_blog_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBlogServer ¶
func RegisterBlogServer(s *grpc.Server, srv BlogServer)
Types ¶
type BlogClient ¶
type BlogClient interface { CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*CreatePostReply, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*UpdatePostReply, error) GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*GetPostReply, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostReply, error) CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*CreateTagReply, error) GetTag(ctx context.Context, in *GetTagRequest, opts ...grpc.CallOption) (*GetTagReply, error) UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*UpdateTagReply, error) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*DeleteTagReply, error) Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (*UploadReply, error) }
BlogClient is the client API for Blog service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBlogClient ¶
func NewBlogClient(cc grpc.ClientConnInterface) BlogClient
type BlogServer ¶
type BlogServer interface { CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error) GetPost(context.Context, *GetPostRequest) (*GetPostReply, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error) CreateTag(context.Context, *CreateTagRequest) (*CreateTagReply, error) GetTag(context.Context, *GetTagRequest) (*GetTagReply, error) UpdateTag(context.Context, *UpdateTagRequest) (*UpdateTagReply, error) DeleteTag(context.Context, *DeleteTagRequest) (*DeleteTagReply, error) Upload(context.Context, *UploadRequest) (*UploadReply, error) }
BlogServer is the server API for Blog service.
type CreatePostReply ¶
type CreatePostReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CreatePostReply) Descriptor
deprecated
func (*CreatePostReply) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostReply.ProtoReflect.Descriptor instead.
func (*CreatePostReply) GetMessage ¶
func (x *CreatePostReply) GetMessage() string
func (*CreatePostReply) GetStatus ¶
func (x *CreatePostReply) GetStatus() string
func (*CreatePostReply) ProtoMessage ¶
func (*CreatePostReply) ProtoMessage()
func (*CreatePostReply) ProtoReflect ¶
func (x *CreatePostReply) ProtoReflect() protoreflect.Message
func (*CreatePostReply) Reset ¶
func (x *CreatePostReply) Reset()
func (*CreatePostReply) String ¶
func (x *CreatePostReply) String() string
type CreatePostRequest ¶
type CreatePostRequest struct { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` Params []*Query `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` Medias []uint64 `protobuf:"varint,8,rep,packed,name=medias,proto3" json:"medias,omitempty"` Tags []uint64 `protobuf:"varint,9,rep,packed,name=Tags,proto3" json:"Tags,omitempty"` Token string `protobuf:"bytes,10,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CreatePostRequest) Descriptor
deprecated
func (*CreatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.
func (*CreatePostRequest) GetDescription ¶
func (x *CreatePostRequest) GetDescription() string
func (*CreatePostRequest) GetMedias ¶
func (x *CreatePostRequest) GetMedias() []uint64
func (*CreatePostRequest) GetParams ¶
func (x *CreatePostRequest) GetParams() []*Query
func (*CreatePostRequest) GetSlug ¶
func (x *CreatePostRequest) GetSlug() string
func (*CreatePostRequest) GetStatus ¶
func (x *CreatePostRequest) GetStatus() string
func (*CreatePostRequest) GetTags ¶
func (x *CreatePostRequest) GetTags() []uint64
func (*CreatePostRequest) GetText ¶
func (x *CreatePostRequest) GetText() string
func (*CreatePostRequest) GetTitle ¶
func (x *CreatePostRequest) GetTitle() string
func (*CreatePostRequest) GetToken ¶
func (x *CreatePostRequest) GetToken() string
func (*CreatePostRequest) GetUserID ¶
func (x *CreatePostRequest) GetUserID() uint64
func (*CreatePostRequest) ProtoMessage ¶
func (*CreatePostRequest) ProtoMessage()
func (*CreatePostRequest) ProtoReflect ¶
func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
func (*CreatePostRequest) Reset ¶
func (x *CreatePostRequest) Reset()
func (*CreatePostRequest) String ¶
func (x *CreatePostRequest) String() string
type CreateTagReply ¶
type CreateTagReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CreateTagReply) Descriptor
deprecated
func (*CreateTagReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateTagReply.ProtoReflect.Descriptor instead.
func (*CreateTagReply) GetMessage ¶
func (x *CreateTagReply) GetMessage() string
func (*CreateTagReply) GetStatus ¶
func (x *CreateTagReply) GetStatus() string
func (*CreateTagReply) ProtoMessage ¶
func (*CreateTagReply) ProtoMessage()
func (*CreateTagReply) ProtoReflect ¶
func (x *CreateTagReply) ProtoReflect() protoreflect.Message
func (*CreateTagReply) Reset ¶
func (x *CreateTagReply) Reset()
func (*CreateTagReply) String ¶
func (x *CreateTagReply) String() string
type CreateTagRequest ¶
type CreateTagRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CreateTagRequest) Descriptor
deprecated
func (*CreateTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTagRequest.ProtoReflect.Descriptor instead.
func (*CreateTagRequest) GetName ¶
func (x *CreateTagRequest) GetName() string
func (*CreateTagRequest) GetToken ¶
func (x *CreateTagRequest) GetToken() string
func (*CreateTagRequest) ProtoMessage ¶
func (*CreateTagRequest) ProtoMessage()
func (*CreateTagRequest) ProtoReflect ¶
func (x *CreateTagRequest) ProtoReflect() protoreflect.Message
func (*CreateTagRequest) Reset ¶
func (x *CreateTagRequest) Reset()
func (*CreateTagRequest) String ¶
func (x *CreateTagRequest) String() string
type DeletePostReply ¶
type DeletePostReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeletePostReply) Descriptor
deprecated
func (*DeletePostReply) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostReply.ProtoReflect.Descriptor instead.
func (*DeletePostReply) GetMessage ¶
func (x *DeletePostReply) GetMessage() string
func (*DeletePostReply) GetStatus ¶
func (x *DeletePostReply) GetStatus() string
func (*DeletePostReply) ProtoMessage ¶
func (*DeletePostReply) ProtoMessage()
func (*DeletePostReply) ProtoReflect ¶
func (x *DeletePostReply) ProtoReflect() protoreflect.Message
func (*DeletePostReply) Reset ¶
func (x *DeletePostReply) Reset()
func (*DeletePostReply) String ¶
func (x *DeletePostReply) String() string
type DeletePostRequest ¶
type DeletePostRequest struct { Filter []*Query `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*DeletePostRequest) Descriptor
deprecated
func (*DeletePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.
func (*DeletePostRequest) GetFilter ¶
func (x *DeletePostRequest) GetFilter() []*Query
func (*DeletePostRequest) GetToken ¶
func (x *DeletePostRequest) GetToken() string
func (*DeletePostRequest) ProtoMessage ¶
func (*DeletePostRequest) ProtoMessage()
func (*DeletePostRequest) ProtoReflect ¶
func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
func (*DeletePostRequest) Reset ¶
func (x *DeletePostRequest) Reset()
func (*DeletePostRequest) String ¶
func (x *DeletePostRequest) String() string
type DeleteTagReply ¶
type DeleteTagReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeleteTagReply) Descriptor
deprecated
func (*DeleteTagReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTagReply.ProtoReflect.Descriptor instead.
func (*DeleteTagReply) GetMessage ¶
func (x *DeleteTagReply) GetMessage() string
func (*DeleteTagReply) GetStatus ¶
func (x *DeleteTagReply) GetStatus() string
func (*DeleteTagReply) ProtoMessage ¶
func (*DeleteTagReply) ProtoMessage()
func (*DeleteTagReply) ProtoReflect ¶
func (x *DeleteTagReply) ProtoReflect() protoreflect.Message
func (*DeleteTagReply) Reset ¶
func (x *DeleteTagReply) Reset()
func (*DeleteTagReply) String ¶
func (x *DeleteTagReply) String() string
type DeleteTagRequest ¶
type DeleteTagRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*DeleteTagRequest) Descriptor
deprecated
func (*DeleteTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTagRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagRequest) GetName ¶
func (x *DeleteTagRequest) GetName() string
func (*DeleteTagRequest) GetToken ¶
func (x *DeleteTagRequest) GetToken() string
func (*DeleteTagRequest) ProtoMessage ¶
func (*DeleteTagRequest) ProtoMessage()
func (*DeleteTagRequest) ProtoReflect ¶
func (x *DeleteTagRequest) ProtoReflect() protoreflect.Message
func (*DeleteTagRequest) Reset ¶
func (x *DeleteTagRequest) Reset()
func (*DeleteTagRequest) String ¶
func (x *DeleteTagRequest) String() string
type GetPostReply ¶
type GetPostReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Posts []*Posts `protobuf:"bytes,3,rep,name=posts,proto3" json:"posts,omitempty"` // contains filtered or unexported fields }
func (*GetPostReply) Descriptor
deprecated
func (*GetPostReply) Descriptor() ([]byte, []int)
Deprecated: Use GetPostReply.ProtoReflect.Descriptor instead.
func (*GetPostReply) GetMessage ¶
func (x *GetPostReply) GetMessage() string
func (*GetPostReply) GetPosts ¶
func (x *GetPostReply) GetPosts() []*Posts
func (*GetPostReply) GetStatus ¶
func (x *GetPostReply) GetStatus() string
func (*GetPostReply) ProtoMessage ¶
func (*GetPostReply) ProtoMessage()
func (*GetPostReply) ProtoReflect ¶
func (x *GetPostReply) ProtoReflect() protoreflect.Message
func (*GetPostReply) Reset ¶
func (x *GetPostReply) Reset()
func (*GetPostReply) String ¶
func (x *GetPostReply) String() string
type GetPostRequest ¶
type GetPostRequest struct { Must []*Query `protobuf:"bytes,1,rep,name=must,proto3" json:"must,omitempty"` Should []*Query `protobuf:"bytes,2,rep,name=should,proto3" json:"should,omitempty"` Not []*Query `protobuf:"bytes,3,rep,name=not,proto3" json:"not,omitempty"` Filter []*Query `protobuf:"bytes,4,rep,name=filter,proto3" json:"filter,omitempty"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetPostRequest) Descriptor
deprecated
func (*GetPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) GetFilter ¶
func (x *GetPostRequest) GetFilter() []*Query
func (*GetPostRequest) GetMust ¶
func (x *GetPostRequest) GetMust() []*Query
func (*GetPostRequest) GetNot ¶
func (x *GetPostRequest) GetNot() []*Query
func (*GetPostRequest) GetShould ¶
func (x *GetPostRequest) GetShould() []*Query
func (*GetPostRequest) GetToken ¶
func (x *GetPostRequest) GetToken() string
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) ProtoReflect ¶
func (x *GetPostRequest) ProtoReflect() protoreflect.Message
func (*GetPostRequest) Reset ¶
func (x *GetPostRequest) Reset()
func (*GetPostRequest) String ¶
func (x *GetPostRequest) String() string
type GetTagReply ¶
type GetTagReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*GetTagReply) Descriptor
deprecated
func (*GetTagReply) Descriptor() ([]byte, []int)
Deprecated: Use GetTagReply.ProtoReflect.Descriptor instead.
func (*GetTagReply) GetMessage ¶
func (x *GetTagReply) GetMessage() string
func (*GetTagReply) GetStatus ¶
func (x *GetTagReply) GetStatus() string
func (*GetTagReply) GetTags ¶
func (x *GetTagReply) GetTags() []string
func (*GetTagReply) ProtoMessage ¶
func (*GetTagReply) ProtoMessage()
func (*GetTagReply) ProtoReflect ¶
func (x *GetTagReply) ProtoReflect() protoreflect.Message
func (*GetTagReply) Reset ¶
func (x *GetTagReply) Reset()
func (*GetTagReply) String ¶
func (x *GetTagReply) String() string
type GetTagRequest ¶
type GetTagRequest struct { Filter []*Query `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetTagRequest) Descriptor
deprecated
func (*GetTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTagRequest.ProtoReflect.Descriptor instead.
func (*GetTagRequest) GetFilter ¶
func (x *GetTagRequest) GetFilter() []*Query
func (*GetTagRequest) GetToken ¶
func (x *GetTagRequest) GetToken() string
func (*GetTagRequest) ProtoMessage ¶
func (*GetTagRequest) ProtoMessage()
func (*GetTagRequest) ProtoReflect ¶
func (x *GetTagRequest) ProtoReflect() protoreflect.Message
func (*GetTagRequest) Reset ¶
func (x *GetTagRequest) Reset()
func (*GetTagRequest) String ¶
func (x *GetTagRequest) String() string
type Media ¶
type Media struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Media) Descriptor
deprecated
func (*Media) GetDescription ¶
func (*Media) ProtoMessage ¶
func (*Media) ProtoMessage()
func (*Media) ProtoReflect ¶
func (x *Media) ProtoReflect() protoreflect.Message
type Posts ¶
type Posts struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` Params []*Query `protobuf:"bytes,6,rep,name=params,proto3" json:"params,omitempty"` Medias []*Media `protobuf:"bytes,7,rep,name=medias,proto3" json:"medias,omitempty"` Tags []*Tag `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` PublishedAT string `protobuf:"bytes,9,opt,name=publishedAT,proto3" json:"publishedAT,omitempty"` // contains filtered or unexported fields }
func (*Posts) Descriptor
deprecated
func (*Posts) GetDescription ¶
func (*Posts) GetPublishedAT ¶
func (*Posts) ProtoMessage ¶
func (*Posts) ProtoMessage()
func (*Posts) ProtoReflect ¶
func (x *Posts) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type UnimplementedBlogServer ¶
type UnimplementedBlogServer struct { }
UnimplementedBlogServer can be embedded to have forward compatible implementations.
func (*UnimplementedBlogServer) CreatePost ¶
func (*UnimplementedBlogServer) CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error)
func (*UnimplementedBlogServer) CreateTag ¶
func (*UnimplementedBlogServer) CreateTag(context.Context, *CreateTagRequest) (*CreateTagReply, error)
func (*UnimplementedBlogServer) DeletePost ¶
func (*UnimplementedBlogServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
func (*UnimplementedBlogServer) DeleteTag ¶
func (*UnimplementedBlogServer) DeleteTag(context.Context, *DeleteTagRequest) (*DeleteTagReply, error)
func (*UnimplementedBlogServer) GetPost ¶
func (*UnimplementedBlogServer) GetPost(context.Context, *GetPostRequest) (*GetPostReply, error)
func (*UnimplementedBlogServer) GetTag ¶
func (*UnimplementedBlogServer) GetTag(context.Context, *GetTagRequest) (*GetTagReply, error)
func (*UnimplementedBlogServer) UpdatePost ¶
func (*UnimplementedBlogServer) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error)
func (*UnimplementedBlogServer) UpdateTag ¶
func (*UnimplementedBlogServer) UpdateTag(context.Context, *UpdateTagRequest) (*UpdateTagReply, error)
func (*UnimplementedBlogServer) Upload ¶
func (*UnimplementedBlogServer) Upload(context.Context, *UploadRequest) (*UploadReply, error)
type UpdatePostReply ¶
type UpdatePostReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostReply) Descriptor
deprecated
func (*UpdatePostReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostReply.ProtoReflect.Descriptor instead.
func (*UpdatePostReply) GetMessage ¶
func (x *UpdatePostReply) GetMessage() string
func (*UpdatePostReply) GetStatus ¶
func (x *UpdatePostReply) GetStatus() string
func (*UpdatePostReply) ProtoMessage ¶
func (*UpdatePostReply) ProtoMessage()
func (*UpdatePostReply) ProtoReflect ¶
func (x *UpdatePostReply) ProtoReflect() protoreflect.Message
func (*UpdatePostReply) Reset ¶
func (x *UpdatePostReply) Reset()
func (*UpdatePostReply) String ¶
func (x *UpdatePostReply) String() string
type UpdatePostRequest ¶
type UpdatePostRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` Params []*Query `protobuf:"bytes,6,rep,name=params,proto3" json:"params,omitempty"` Medias []uint64 `protobuf:"varint,7,rep,packed,name=medias,proto3" json:"medias,omitempty"` Tags []uint64 `protobuf:"varint,8,rep,packed,name=Tags,proto3" json:"Tags,omitempty"` Token string `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostRequest) Descriptor
deprecated
func (*UpdatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostRequest) GetDescription ¶
func (x *UpdatePostRequest) GetDescription() string
func (*UpdatePostRequest) GetMedias ¶
func (x *UpdatePostRequest) GetMedias() []uint64
func (*UpdatePostRequest) GetParams ¶
func (x *UpdatePostRequest) GetParams() []*Query
func (*UpdatePostRequest) GetSlug ¶
func (x *UpdatePostRequest) GetSlug() string
func (*UpdatePostRequest) GetStatus ¶
func (x *UpdatePostRequest) GetStatus() string
func (*UpdatePostRequest) GetTags ¶
func (x *UpdatePostRequest) GetTags() []uint64
func (*UpdatePostRequest) GetText ¶
func (x *UpdatePostRequest) GetText() string
func (*UpdatePostRequest) GetTitle ¶
func (x *UpdatePostRequest) GetTitle() string
func (*UpdatePostRequest) GetToken ¶
func (x *UpdatePostRequest) GetToken() string
func (*UpdatePostRequest) ProtoMessage ¶
func (*UpdatePostRequest) ProtoMessage()
func (*UpdatePostRequest) ProtoReflect ¶
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostRequest) Reset ¶
func (x *UpdatePostRequest) Reset()
func (*UpdatePostRequest) String ¶
func (x *UpdatePostRequest) String() string
type UpdateTagReply ¶
type UpdateTagReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateTagReply) Descriptor
deprecated
func (*UpdateTagReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTagReply.ProtoReflect.Descriptor instead.
func (*UpdateTagReply) GetMessage ¶
func (x *UpdateTagReply) GetMessage() string
func (*UpdateTagReply) GetStatus ¶
func (x *UpdateTagReply) GetStatus() string
func (*UpdateTagReply) ProtoMessage ¶
func (*UpdateTagReply) ProtoMessage()
func (*UpdateTagReply) ProtoReflect ¶
func (x *UpdateTagReply) ProtoReflect() protoreflect.Message
func (*UpdateTagReply) Reset ¶
func (x *UpdateTagReply) Reset()
func (*UpdateTagReply) String ¶
func (x *UpdateTagReply) String() string
type UpdateTagRequest ¶
type UpdateTagRequest struct { OldName string `protobuf:"bytes,1,opt,name=oldName,proto3" json:"oldName,omitempty"` NewName string `protobuf:"bytes,2,opt,name=newName,proto3" json:"newName,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UpdateTagRequest) Descriptor
deprecated
func (*UpdateTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTagRequest.ProtoReflect.Descriptor instead.
func (*UpdateTagRequest) GetNewName ¶
func (x *UpdateTagRequest) GetNewName() string
func (*UpdateTagRequest) GetOldName ¶
func (x *UpdateTagRequest) GetOldName() string
func (*UpdateTagRequest) GetToken ¶
func (x *UpdateTagRequest) GetToken() string
func (*UpdateTagRequest) ProtoMessage ¶
func (*UpdateTagRequest) ProtoMessage()
func (*UpdateTagRequest) ProtoReflect ¶
func (x *UpdateTagRequest) ProtoReflect() protoreflect.Message
func (*UpdateTagRequest) Reset ¶
func (x *UpdateTagRequest) Reset()
func (*UpdateTagRequest) String ¶
func (x *UpdateTagRequest) String() string
type UploadReply ¶
type UploadReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UploadReply) Descriptor
deprecated
func (*UploadReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadReply.ProtoReflect.Descriptor instead.
func (*UploadReply) GetMessage ¶
func (x *UploadReply) GetMessage() string
func (*UploadReply) GetStatus ¶
func (x *UploadReply) GetStatus() string
func (*UploadReply) ProtoMessage ¶
func (*UploadReply) ProtoMessage()
func (*UploadReply) ProtoReflect ¶
func (x *UploadReply) ProtoReflect() protoreflect.Message
func (*UploadReply) Reset ¶
func (x *UploadReply) Reset()
func (*UploadReply) String ¶
func (x *UploadReply) String() string
type UploadRequest ¶
type UploadRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` FileType string `protobuf:"bytes,3,opt,name=fileType,proto3" json:"fileType,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UploadRequest) Descriptor
deprecated
func (*UploadRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.
func (*UploadRequest) GetData ¶
func (x *UploadRequest) GetData() []byte
func (*UploadRequest) GetDescription ¶
func (x *UploadRequest) GetDescription() string
func (*UploadRequest) GetFileType ¶
func (x *UploadRequest) GetFileType() string
func (*UploadRequest) GetTitle ¶
func (x *UploadRequest) GetTitle() string
func (*UploadRequest) GetToken ¶
func (x *UploadRequest) GetToken() string
func (*UploadRequest) ProtoMessage ¶
func (*UploadRequest) ProtoMessage()
func (*UploadRequest) ProtoReflect ¶
func (x *UploadRequest) ProtoReflect() protoreflect.Message
func (*UploadRequest) Reset ¶
func (x *UploadRequest) Reset()
func (*UploadRequest) String ¶
func (x *UploadRequest) String() string