Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBlogServiceServer(s grpc.ServiceRegistrar, srv BlogServiceServer)
- type Blog
- func (*Blog) Descriptor() ([]byte, []int)deprecated
- func (x *Blog) GetCustomMetaData() string
- func (x *Blog) GetDescription() string
- func (x *Blog) GetId() string
- func (x *Blog) GetKind() string
- func (x *Blog) GetName() string
- func (x *Blog) GetPages() []*Pages
- func (x *Blog) GetPosts() []*Posts
- func (x *Blog) GetPublished() *timestamppb.Timestamp
- func (x *Blog) GetSelfLink() string
- func (x *Blog) GetUpdated() *timestamppb.Timestamp
- func (x *Blog) GetUrl() string
- func (*Blog) ProtoMessage()
- func (x *Blog) ProtoReflect() protoreflect.Message
- func (x *Blog) Reset()
- func (x *Blog) String() string
- type BlogServiceClient
- type BlogServiceServer
- type BlogUserInfo
- func (*BlogUserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BlogUserInfo) GetBlogId() string
- func (x *BlogUserInfo) GetHasAdminAccess() bool
- func (x *BlogUserInfo) GetKind() string
- func (x *BlogUserInfo) GetPhotosAlbumKey() string
- func (x *BlogUserInfo) GetUserId() string
- func (*BlogUserInfo) ProtoMessage()
- func (x *BlogUserInfo) ProtoReflect() protoreflect.Message
- func (x *BlogUserInfo) Reset()
- func (x *BlogUserInfo) String() string
- type BlogUserInfos
- func (*BlogUserInfos) Descriptor() ([]byte, []int)deprecated
- func (x *BlogUserInfos) GetBlog() *Blog
- func (x *BlogUserInfos) GetBlogUserInfo() *BlogUserInfo
- func (x *BlogUserInfos) GetKind() string
- func (*BlogUserInfos) ProtoMessage()
- func (x *BlogUserInfos) ProtoReflect() protoreflect.Message
- func (x *BlogUserInfos) Reset()
- func (x *BlogUserInfos) String() string
- type Count
- type GetBlogUserInfosReq
- func (*GetBlogUserInfosReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlogUserInfosReq) GetBlogId() string
- func (x *GetBlogUserInfosReq) GetMaxPosts() uint64
- func (x *GetBlogUserInfosReq) GetUserId() string
- func (*GetBlogUserInfosReq) ProtoMessage()
- func (x *GetBlogUserInfosReq) ProtoReflect() protoreflect.Message
- func (x *GetBlogUserInfosReq) Reset()
- func (x *GetBlogUserInfosReq) String() string
- type GetByUrlReq
- type GetPageViewsReq
- func (*GetPageViewsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetPageViewsReq) GetBlogId() string
- func (x *GetPageViewsReq) GetRange() string
- func (*GetPageViewsReq) ProtoMessage()
- func (x *GetPageViewsReq) ProtoReflect() protoreflect.Message
- func (x *GetPageViewsReq) Reset()
- func (x *GetPageViewsReq) String() string
- type GetReq
- type ListByUserReq
- func (*ListByUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListByUserReq) GetFetchUserInfo() bool
- func (x *ListByUserReq) GetUserId() string
- func (x *ListByUserReq) GetView() string
- func (*ListByUserReq) ProtoMessage()
- func (x *ListByUserReq) ProtoReflect() protoreflect.Message
- func (x *ListByUserReq) Reset()
- func (x *ListByUserReq) String() string
- type ListByUserResp
- func (*ListByUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListByUserResp) GetBlogUserInfos() []*BlogUserInfos
- func (x *ListByUserResp) GetItems() []*Blog
- func (x *ListByUserResp) GetKind() string
- func (*ListByUserResp) ProtoMessage()
- func (x *ListByUserResp) ProtoReflect() protoreflect.Message
- func (x *ListByUserResp) Reset()
- func (x *ListByUserResp) String() string
- type PageViews
- func (*PageViews) Descriptor() ([]byte, []int)deprecated
- func (x *PageViews) GetBlogId() string
- func (x *PageViews) GetCounts() []*Count
- func (x *PageViews) GetKind() string
- func (*PageViews) ProtoMessage()
- func (x *PageViews) ProtoReflect() protoreflect.Message
- func (x *PageViews) Reset()
- func (x *PageViews) String() string
- type Pages
- type Posts
- type UnimplementedBlogServiceServer
- func (UnimplementedBlogServiceServer) Get(context.Context, *GetReq) (*Blog, error)
- func (UnimplementedBlogServiceServer) GetBlogUserInfos(context.Context, *GetBlogUserInfosReq) (*BlogUserInfos, error)
- func (UnimplementedBlogServiceServer) GetByUrl(context.Context, *GetByUrlReq) (*Blog, error)
- func (UnimplementedBlogServiceServer) GetPageViews(context.Context, *GetPageViewsReq) (*PageViews, error)
- func (UnimplementedBlogServiceServer) ListByUser(context.Context, *ListByUserReq) (*ListByUserResp, error)
- type UnsafeBlogServiceServer
Constants ¶
const ( BlogService_Get_FullMethodName = "/blog.BlogService/Get" BlogService_GetByUrl_FullMethodName = "/blog.BlogService/GetByUrl" BlogService_ListByUser_FullMethodName = "/blog.BlogService/ListByUser" BlogService_GetBlogUserInfos_FullMethodName = "/blog.BlogService/GetBlogUserInfos" BlogService_GetPageViews_FullMethodName = "/blog.BlogService/GetPageViews" )
Variables ¶
var BlogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blog.BlogService", HandlerType: (*BlogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _BlogService_Get_Handler, }, { MethodName: "GetByUrl", Handler: _BlogService_GetByUrl_Handler, }, { MethodName: "ListByUser", Handler: _BlogService_ListByUser_Handler, }, { MethodName: "GetBlogUserInfos", Handler: _BlogService_GetBlogUserInfos_Handler, }, { MethodName: "GetPageViews", Handler: _BlogService_GetPageViews_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/blog/rpc/blog.proto", }
BlogService_ServiceDesc is the grpc.ServiceDesc for BlogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_service_blog_rpc_blog_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBlogServiceServer ¶
func RegisterBlogServiceServer(s grpc.ServiceRegistrar, srv BlogServiceServer)
Types ¶
type Blog ¶
type Blog struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Published *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=published,proto3" json:"published,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated,proto3" json:"updated,omitempty"` Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` SelfLink string `protobuf:"bytes,8,opt,name=selfLink,proto3" json:"selfLink,omitempty"` Posts []*Posts `protobuf:"bytes,9,rep,name=posts,proto3" json:"posts,omitempty"` Pages []*Pages `protobuf:"bytes,10,rep,name=pages,proto3" json:"pages,omitempty"` CustomMetaData string `protobuf:"bytes,11,opt,name=customMetaData,proto3" json:"customMetaData,omitempty"` // contains filtered or unexported fields }
func (*Blog) Descriptor
deprecated
func (*Blog) GetCustomMetaData ¶
func (*Blog) GetDescription ¶
func (*Blog) GetPublished ¶
func (x *Blog) GetPublished() *timestamppb.Timestamp
func (*Blog) GetSelfLink ¶
func (*Blog) GetUpdated ¶
func (x *Blog) GetUpdated() *timestamppb.Timestamp
func (*Blog) ProtoMessage ¶
func (*Blog) ProtoMessage()
func (*Blog) ProtoReflect ¶
func (x *Blog) ProtoReflect() protoreflect.Message
type BlogServiceClient ¶
type BlogServiceClient interface { Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Blog, error) GetByUrl(ctx context.Context, in *GetByUrlReq, opts ...grpc.CallOption) (*Blog, error) ListByUser(ctx context.Context, in *ListByUserReq, opts ...grpc.CallOption) (*ListByUserResp, error) GetBlogUserInfos(ctx context.Context, in *GetBlogUserInfosReq, opts ...grpc.CallOption) (*BlogUserInfos, error) GetPageViews(ctx context.Context, in *GetPageViewsReq, opts ...grpc.CallOption) (*PageViews, error) }
BlogServiceClient is the client API for BlogService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBlogServiceClient ¶
func NewBlogServiceClient(cc grpc.ClientConnInterface) BlogServiceClient
type BlogServiceServer ¶
type BlogServiceServer interface { Get(context.Context, *GetReq) (*Blog, error) GetByUrl(context.Context, *GetByUrlReq) (*Blog, error) ListByUser(context.Context, *ListByUserReq) (*ListByUserResp, error) GetBlogUserInfos(context.Context, *GetBlogUserInfosReq) (*BlogUserInfos, error) GetPageViews(context.Context, *GetPageViewsReq) (*PageViews, error) // contains filtered or unexported methods }
BlogServiceServer is the server API for BlogService service. All implementations must embed UnimplementedBlogServiceServer for forward compatibility
type BlogUserInfo ¶
type BlogUserInfo struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` BlogId string `protobuf:"bytes,3,opt,name=blogId,proto3" json:"blogId,omitempty"` PhotosAlbumKey string `protobuf:"bytes,4,opt,name=photosAlbumKey,proto3" json:"photosAlbumKey,omitempty"` HasAdminAccess bool `protobuf:"varint,5,opt,name=hasAdminAccess,proto3" json:"hasAdminAccess,omitempty"` // contains filtered or unexported fields }
func (*BlogUserInfo) Descriptor
deprecated
func (*BlogUserInfo) Descriptor() ([]byte, []int)
Deprecated: Use BlogUserInfo.ProtoReflect.Descriptor instead.
func (*BlogUserInfo) GetBlogId ¶
func (x *BlogUserInfo) GetBlogId() string
func (*BlogUserInfo) GetHasAdminAccess ¶
func (x *BlogUserInfo) GetHasAdminAccess() bool
func (*BlogUserInfo) GetKind ¶
func (x *BlogUserInfo) GetKind() string
func (*BlogUserInfo) GetPhotosAlbumKey ¶
func (x *BlogUserInfo) GetPhotosAlbumKey() string
func (*BlogUserInfo) GetUserId ¶
func (x *BlogUserInfo) GetUserId() string
func (*BlogUserInfo) ProtoMessage ¶
func (*BlogUserInfo) ProtoMessage()
func (*BlogUserInfo) ProtoReflect ¶
func (x *BlogUserInfo) ProtoReflect() protoreflect.Message
func (*BlogUserInfo) Reset ¶
func (x *BlogUserInfo) Reset()
func (*BlogUserInfo) String ¶
func (x *BlogUserInfo) String() string
type BlogUserInfos ¶
type BlogUserInfos struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Blog *Blog `protobuf:"bytes,2,opt,name=blog,proto3" json:"blog,omitempty"` BlogUserInfo *BlogUserInfo `protobuf:"bytes,3,opt,name=blog_user_info,json=blogUserInfo,proto3" json:"blog_user_info,omitempty"` // contains filtered or unexported fields }
func (*BlogUserInfos) Descriptor
deprecated
func (*BlogUserInfos) Descriptor() ([]byte, []int)
Deprecated: Use BlogUserInfos.ProtoReflect.Descriptor instead.
func (*BlogUserInfos) GetBlog ¶
func (x *BlogUserInfos) GetBlog() *Blog
func (*BlogUserInfos) GetBlogUserInfo ¶
func (x *BlogUserInfos) GetBlogUserInfo() *BlogUserInfo
func (*BlogUserInfos) GetKind ¶
func (x *BlogUserInfos) GetKind() string
func (*BlogUserInfos) ProtoMessage ¶
func (*BlogUserInfos) ProtoMessage()
func (*BlogUserInfos) ProtoReflect ¶
func (x *BlogUserInfos) ProtoReflect() protoreflect.Message
func (*BlogUserInfos) Reset ¶
func (x *BlogUserInfos) Reset()
func (*BlogUserInfos) String ¶
func (x *BlogUserInfos) String() string
type Count ¶
type Count struct { TimeRange string `protobuf:"bytes,1,opt,name=timeRange,proto3" json:"timeRange,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*Count) Descriptor
deprecated
func (*Count) GetTimeRange ¶
func (*Count) ProtoMessage ¶
func (*Count) ProtoMessage()
func (*Count) ProtoReflect ¶
func (x *Count) ProtoReflect() protoreflect.Message
type GetBlogUserInfosReq ¶
type GetBlogUserInfosReq struct { BlogId string `protobuf:"bytes,1,opt,name=blogId,proto3" json:"blogId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` MaxPosts uint64 `protobuf:"varint,3,opt,name=maxPosts,proto3" json:"maxPosts,omitempty"` // contains filtered or unexported fields }
func (*GetBlogUserInfosReq) Descriptor
deprecated
func (*GetBlogUserInfosReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBlogUserInfosReq.ProtoReflect.Descriptor instead.
func (*GetBlogUserInfosReq) GetBlogId ¶
func (x *GetBlogUserInfosReq) GetBlogId() string
func (*GetBlogUserInfosReq) GetMaxPosts ¶
func (x *GetBlogUserInfosReq) GetMaxPosts() uint64
func (*GetBlogUserInfosReq) GetUserId ¶
func (x *GetBlogUserInfosReq) GetUserId() string
func (*GetBlogUserInfosReq) ProtoMessage ¶
func (*GetBlogUserInfosReq) ProtoMessage()
func (*GetBlogUserInfosReq) ProtoReflect ¶
func (x *GetBlogUserInfosReq) ProtoReflect() protoreflect.Message
func (*GetBlogUserInfosReq) Reset ¶
func (x *GetBlogUserInfosReq) Reset()
func (*GetBlogUserInfosReq) String ¶
func (x *GetBlogUserInfosReq) String() string
type GetByUrlReq ¶
type GetByUrlReq struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*GetByUrlReq) Descriptor
deprecated
func (*GetByUrlReq) Descriptor() ([]byte, []int)
Deprecated: Use GetByUrlReq.ProtoReflect.Descriptor instead.
func (*GetByUrlReq) GetUrl ¶
func (x *GetByUrlReq) GetUrl() string
func (*GetByUrlReq) ProtoMessage ¶
func (*GetByUrlReq) ProtoMessage()
func (*GetByUrlReq) ProtoReflect ¶
func (x *GetByUrlReq) ProtoReflect() protoreflect.Message
func (*GetByUrlReq) Reset ¶
func (x *GetByUrlReq) Reset()
func (*GetByUrlReq) String ¶
func (x *GetByUrlReq) String() string
type GetPageViewsReq ¶
type GetPageViewsReq struct { BlogId string `protobuf:"bytes,1,opt,name=blogId,proto3" json:"blogId,omitempty"` Range string `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` // contains filtered or unexported fields }
func (*GetPageViewsReq) Descriptor
deprecated
func (*GetPageViewsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetPageViewsReq.ProtoReflect.Descriptor instead.
func (*GetPageViewsReq) GetBlogId ¶
func (x *GetPageViewsReq) GetBlogId() string
func (*GetPageViewsReq) GetRange ¶
func (x *GetPageViewsReq) GetRange() string
func (*GetPageViewsReq) ProtoMessage ¶
func (*GetPageViewsReq) ProtoMessage()
func (*GetPageViewsReq) ProtoReflect ¶
func (x *GetPageViewsReq) ProtoReflect() protoreflect.Message
func (*GetPageViewsReq) Reset ¶
func (x *GetPageViewsReq) Reset()
func (*GetPageViewsReq) String ¶
func (x *GetPageViewsReq) String() string
type GetReq ¶
type GetReq struct { BlogId string `protobuf:"bytes,1,opt,name=blogId,proto3" json:"blogId,omitempty"` MaxPosts uint64 `protobuf:"varint,2,opt,name=maxPosts,proto3" json:"maxPosts,omitempty"` // contains filtered or unexported fields }
func (*GetReq) Descriptor
deprecated
func (*GetReq) GetMaxPosts ¶
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type ListByUserReq ¶
type ListByUserReq struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` FetchUserInfo bool `protobuf:"varint,2,opt,name=fetchUserInfo,proto3" json:"fetchUserInfo,omitempty"` View string `protobuf:"bytes,3,opt,name=view,proto3" json:"view,omitempty"` // contains filtered or unexported fields }
func (*ListByUserReq) Descriptor
deprecated
func (*ListByUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListByUserReq.ProtoReflect.Descriptor instead.
func (*ListByUserReq) GetFetchUserInfo ¶
func (x *ListByUserReq) GetFetchUserInfo() bool
func (*ListByUserReq) GetUserId ¶
func (x *ListByUserReq) GetUserId() string
func (*ListByUserReq) GetView ¶
func (x *ListByUserReq) GetView() string
func (*ListByUserReq) ProtoMessage ¶
func (*ListByUserReq) ProtoMessage()
func (*ListByUserReq) ProtoReflect ¶
func (x *ListByUserReq) ProtoReflect() protoreflect.Message
func (*ListByUserReq) Reset ¶
func (x *ListByUserReq) Reset()
func (*ListByUserReq) String ¶
func (x *ListByUserReq) String() string
type ListByUserResp ¶
type ListByUserResp struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Items []*Blog `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` BlogUserInfos []*BlogUserInfos `protobuf:"bytes,3,rep,name=blogUserInfos,proto3" json:"blogUserInfos,omitempty"` // contains filtered or unexported fields }
func (*ListByUserResp) Descriptor
deprecated
func (*ListByUserResp) Descriptor() ([]byte, []int)
Deprecated: Use ListByUserResp.ProtoReflect.Descriptor instead.
func (*ListByUserResp) GetBlogUserInfos ¶
func (x *ListByUserResp) GetBlogUserInfos() []*BlogUserInfos
func (*ListByUserResp) GetItems ¶
func (x *ListByUserResp) GetItems() []*Blog
func (*ListByUserResp) GetKind ¶
func (x *ListByUserResp) GetKind() string
func (*ListByUserResp) ProtoMessage ¶
func (*ListByUserResp) ProtoMessage()
func (*ListByUserResp) ProtoReflect ¶
func (x *ListByUserResp) ProtoReflect() protoreflect.Message
func (*ListByUserResp) Reset ¶
func (x *ListByUserResp) Reset()
func (*ListByUserResp) String ¶
func (x *ListByUserResp) String() string
type PageViews ¶
type PageViews struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` BlogId string `protobuf:"bytes,2,opt,name=blogId,proto3" json:"blogId,omitempty"` Counts []*Count `protobuf:"bytes,3,rep,name=counts,proto3" json:"counts,omitempty"` // contains filtered or unexported fields }
func (*PageViews) Descriptor
deprecated
func (*PageViews) ProtoMessage ¶
func (*PageViews) ProtoMessage()
func (*PageViews) ProtoReflect ¶
func (x *PageViews) ProtoReflect() protoreflect.Message
type Pages ¶
type Pages struct { TotalItems string `protobuf:"bytes,1,opt,name=totalItems,proto3" json:"totalItems,omitempty"` SelfLink string `protobuf:"bytes,2,opt,name=selfLink,proto3" json:"selfLink,omitempty"` // contains filtered or unexported fields }
func (*Pages) Descriptor
deprecated
func (*Pages) GetSelfLink ¶
func (*Pages) GetTotalItems ¶
func (*Pages) ProtoMessage ¶
func (*Pages) ProtoMessage()
func (*Pages) ProtoReflect ¶
func (x *Pages) ProtoReflect() protoreflect.Message
type Posts ¶
type Posts struct { TotalItems string `protobuf:"bytes,1,opt,name=totalItems,proto3" json:"totalItems,omitempty"` SelfLink string `protobuf:"bytes,2,opt,name=selfLink,proto3" json:"selfLink,omitempty"` // contains filtered or unexported fields }
func (*Posts) Descriptor
deprecated
func (*Posts) GetSelfLink ¶
func (*Posts) GetTotalItems ¶
func (*Posts) ProtoMessage ¶
func (*Posts) ProtoMessage()
func (*Posts) ProtoReflect ¶
func (x *Posts) ProtoReflect() protoreflect.Message
type UnimplementedBlogServiceServer ¶
type UnimplementedBlogServiceServer struct { }
UnimplementedBlogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBlogServiceServer) GetBlogUserInfos ¶
func (UnimplementedBlogServiceServer) GetBlogUserInfos(context.Context, *GetBlogUserInfosReq) (*BlogUserInfos, error)
func (UnimplementedBlogServiceServer) GetByUrl ¶
func (UnimplementedBlogServiceServer) GetByUrl(context.Context, *GetByUrlReq) (*Blog, error)
func (UnimplementedBlogServiceServer) GetPageViews ¶
func (UnimplementedBlogServiceServer) GetPageViews(context.Context, *GetPageViewsReq) (*PageViews, error)
func (UnimplementedBlogServiceServer) ListByUser ¶
func (UnimplementedBlogServiceServer) ListByUser(context.Context, *ListByUserReq) (*ListByUserResp, error)
type UnsafeBlogServiceServer ¶
type UnsafeBlogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBlogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlogServiceServer will result in compilation errors.