blog

package
v0.0.0-...-ff0c412 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)

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

Deprecated: Use Blog.ProtoReflect.Descriptor instead.

func (*Blog) GetCustomMetaData

func (x *Blog) GetCustomMetaData() string

func (*Blog) GetDescription

func (x *Blog) GetDescription() string

func (*Blog) GetId

func (x *Blog) GetId() string

func (*Blog) GetKind

func (x *Blog) GetKind() string

func (*Blog) GetName

func (x *Blog) GetName() string

func (*Blog) GetPages

func (x *Blog) GetPages() []*Pages

func (*Blog) GetPosts

func (x *Blog) GetPosts() []*Posts

func (*Blog) GetPublished

func (x *Blog) GetPublished() *timestamppb.Timestamp
func (x *Blog) GetSelfLink() string

func (*Blog) GetUpdated

func (x *Blog) GetUpdated() *timestamppb.Timestamp

func (*Blog) GetUrl

func (x *Blog) GetUrl() 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 {
	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.

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

Deprecated: Use Count.ProtoReflect.Descriptor instead.

func (*Count) GetCount

func (x *Count) GetCount() uint64

func (*Count) GetTimeRange

func (x *Count) GetTimeRange() string

func (*Count) ProtoMessage

func (*Count) ProtoMessage()

func (*Count) ProtoReflect

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

func (*Count) Reset

func (x *Count) Reset()

func (*Count) String

func (x *Count) String() string

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

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetBlogId

func (x *GetReq) GetBlogId() string

func (*GetReq) GetMaxPosts

func (x *GetReq) GetMaxPosts() uint64

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect

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

func (*GetReq) Reset

func (x *GetReq) Reset()

func (*GetReq) String

func (x *GetReq) String() string

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

Deprecated: Use PageViews.ProtoReflect.Descriptor instead.

func (*PageViews) GetBlogId

func (x *PageViews) GetBlogId() string

func (*PageViews) GetCounts

func (x *PageViews) GetCounts() []*Count

func (*PageViews) GetKind

func (x *PageViews) GetKind() string

func (*PageViews) ProtoMessage

func (*PageViews) ProtoMessage()

func (*PageViews) ProtoReflect

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

func (*PageViews) Reset

func (x *PageViews) Reset()

func (*PageViews) String

func (x *PageViews) String() string

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

Deprecated: Use Pages.ProtoReflect.Descriptor instead.

func (x *Pages) GetSelfLink() string

func (*Pages) GetTotalItems

func (x *Pages) GetTotalItems() string

func (*Pages) ProtoMessage

func (*Pages) ProtoMessage()

func (*Pages) ProtoReflect

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

func (*Pages) Reset

func (x *Pages) Reset()

func (*Pages) String

func (x *Pages) String() string

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

Deprecated: Use Posts.ProtoReflect.Descriptor instead.

func (x *Posts) GetSelfLink() string

func (*Posts) GetTotalItems

func (x *Posts) GetTotalItems() string

func (*Posts) ProtoMessage

func (*Posts) ProtoMessage()

func (*Posts) ProtoReflect

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

func (*Posts) Reset

func (x *Posts) Reset()

func (*Posts) String

func (x *Posts) String() string

type UnimplementedBlogServiceServer

type UnimplementedBlogServiceServer struct {
}

UnimplementedBlogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBlogServiceServer) Get

func (UnimplementedBlogServiceServer) GetBlogUserInfos

func (UnimplementedBlogServiceServer) GetByUrl

func (UnimplementedBlogServiceServer) GetPageViews

func (UnimplementedBlogServiceServer) ListByUser

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.

Jump to

Keyboard shortcuts

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