examples

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Section_name = map[int32]string{
		0: "cooking",
		1: "painting",
		2: "woodworking",
		3: "snowboarding",
	}
	Section_value = map[string]int32{
		"cooking":      0,
		"painting":     1,
		"woodworking":  2,
		"snowboarding": 3,
	}
)

Enum value maps for Section.

View Source
var EnumValueMaps = map[string]map[string]int32{
	"Section": map[string]int32{
		"cooking":      0,
		"painting":     1,
		"snowboarding": 3,
		"woodworking":  2,
	},
}
View Source
var File_examples_query_proto protoreflect.FileDescriptor

Functions

func RegisterBlogQueryServiceServer

func RegisterBlogQueryServiceServer(s *grpc.Server, srv BlogQueryServiceServer)

func RegisterInsertServiceServer

func RegisterInsertServiceServer(s *grpc.Server, srv InsertServiceServer)

Types

type Author

type Author struct {
	AuthorId               uint32  `protobuf:"varint,1,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`
	AuthorUsername         string  `protobuf:"bytes,2,opt,name=author_username,json=authorUsername,proto3" json:"author_username,omitempty"`
	AuthorPassword         string  `protobuf:"bytes,3,opt,name=author_password,json=authorPassword,proto3" json:"author_password,omitempty"`
	AuthorEmail            string  `protobuf:"bytes,4,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
	AuthorBio              string  `protobuf:"bytes,5,opt,name=author_bio,json=authorBio,proto3" json:"author_bio,omitempty"`
	AuthorFavouriteSection Section `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Author) Descriptor deprecated

func (*Author) Descriptor() ([]byte, []int)

Deprecated: Use Author.ProtoReflect.Descriptor instead.

func (*Author) GetAuthorBio

func (x *Author) GetAuthorBio() string

func (*Author) GetAuthorEmail

func (x *Author) GetAuthorEmail() string

func (*Author) GetAuthorFavouriteSection

func (x *Author) GetAuthorFavouriteSection() Section

func (*Author) GetAuthorId

func (x *Author) GetAuthorId() uint32

func (*Author) GetAuthorPassword

func (x *Author) GetAuthorPassword() string

func (*Author) GetAuthorUsername

func (x *Author) GetAuthorUsername() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) ProtoReflect

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

func (*Author) Reset

func (x *Author) Reset()

func (*Author) String

func (x *Author) String() string

type BlogIdsRequest

type BlogIdsRequest struct {
	Ids    []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	Titles []string `protobuf:"bytes,2,rep,name=titles,proto3" json:"titles,omitempty"`
	// contains filtered or unexported fields
}

func (*BlogIdsRequest) Descriptor deprecated

func (*BlogIdsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BlogIdsRequest.ProtoReflect.Descriptor instead.

func (*BlogIdsRequest) GetIds

func (x *BlogIdsRequest) GetIds() []uint32

func (*BlogIdsRequest) GetTitles

func (x *BlogIdsRequest) GetTitles() []string

func (*BlogIdsRequest) ProtoMessage

func (*BlogIdsRequest) ProtoMessage()

func (*BlogIdsRequest) ProtoReflect

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

func (*BlogIdsRequest) Reset

func (x *BlogIdsRequest) Reset()

func (*BlogIdsRequest) String

func (x *BlogIdsRequest) String() string

type BlogQueryServiceClient

type BlogQueryServiceClient interface {
	SelectBlog(ctx context.Context, in *BlogRequest, opts ...grpc.CallOption) (*BlogResponse, error)
	SelectBlogs(ctx context.Context, in *BlogIdsRequest, opts ...grpc.CallOption) (BlogQueryService_SelectBlogsClient, error)
	SelectDetailedBlog(ctx context.Context, in *BlogRequest, opts ...grpc.CallOption) (*DetailedBlogResponse, error)
	SelectDetailedBlogs(ctx context.Context, in *BlogIdsRequest, opts ...grpc.CallOption) (BlogQueryService_SelectDetailedBlogsClient, error)
}

BlogQueryServiceClient is the client API for BlogQueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type BlogQueryServiceMapServer

type BlogQueryServiceMapServer struct {
	DB      *sql.DB
	Dialect string

	SelectBlogMapper             *mapper.Mapper
	SelectBlogCallbacks          BlogQueryServiceSelectBlogCallbacks
	SelectBlogsMapper            *mapper.Mapper
	SelectBlogsCallbacks         BlogQueryServiceSelectBlogsCallbacks
	SelectDetailedBlogMapper     *mapper.Mapper
	SelectDetailedBlogCallbacks  BlogQueryServiceSelectDetailedBlogCallbacks
	SelectDetailedBlogsMapper    *mapper.Mapper
	SelectDetailedBlogsCallbacks BlogQueryServiceSelectDetailedBlogsCallbacks
	// contains filtered or unexported fields
}

func (*BlogQueryServiceMapServer) RegisterSelectBlogAfterQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectBlogAfterQueryCallback(callbacks ...func(queryString string, req *BlogRequest, resp *BlogResponse) error)

func (*BlogQueryServiceMapServer) RegisterSelectBlogBeforeQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectBlogBeforeQueryCallback(callbacks ...func(queryString string, req *BlogRequest) error)

func (*BlogQueryServiceMapServer) RegisterSelectBlogCache

func (m *BlogQueryServiceMapServer) RegisterSelectBlogCache(cache func(queryString string, req *BlogRequest) (*BlogResponse, error))

func (*BlogQueryServiceMapServer) RegisterSelectBlogsAfterQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectBlogsAfterQueryCallback(callbacks ...func(queryString string, req *BlogIdsRequest, resp []*BlogResponse) error)

func (*BlogQueryServiceMapServer) RegisterSelectBlogsBeforeQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectBlogsBeforeQueryCallback(callbacks ...func(queryString string, req *BlogIdsRequest) error)

func (*BlogQueryServiceMapServer) RegisterSelectBlogsCache

func (m *BlogQueryServiceMapServer) RegisterSelectBlogsCache(cache func(queryString string, req *BlogIdsRequest) ([]*BlogResponse, error))

func (*BlogQueryServiceMapServer) RegisterSelectDetailedBlogAfterQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogAfterQueryCallback(callbacks ...func(queryString string, req *BlogRequest, resp *DetailedBlogResponse) error)

func (*BlogQueryServiceMapServer) RegisterSelectDetailedBlogBeforeQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogBeforeQueryCallback(callbacks ...func(queryString string, req *BlogRequest) error)

func (*BlogQueryServiceMapServer) RegisterSelectDetailedBlogCache

func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogCache(cache func(queryString string, req *BlogRequest) (*DetailedBlogResponse, error))

func (*BlogQueryServiceMapServer) RegisterSelectDetailedBlogsAfterQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogsAfterQueryCallback(callbacks ...func(queryString string, req *BlogIdsRequest, resp []*DetailedBlogResponse) error)

func (*BlogQueryServiceMapServer) RegisterSelectDetailedBlogsBeforeQueryCallback

func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogsBeforeQueryCallback(callbacks ...func(queryString string, req *BlogIdsRequest) error)

func (*BlogQueryServiceMapServer) RegisterSelectDetailedBlogsCache

func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogsCache(cache func(queryString string, req *BlogIdsRequest) ([]*DetailedBlogResponse, error))

func (*BlogQueryServiceMapServer) SelectBlog

func (*BlogQueryServiceMapServer) SelectBlogs

func (*BlogQueryServiceMapServer) SelectDetailedBlog

func (*BlogQueryServiceMapServer) SelectDetailedBlogs

type BlogQueryServiceSelectBlogCallbacks

type BlogQueryServiceSelectBlogCallbacks struct {
	BeforeQueryCallback []func(queryString string, req *BlogRequest) error
	AfterQueryCallback  []func(queryString string, req *BlogRequest, resp *BlogResponse) error
	Cache               func(queryString string, req *BlogRequest) (*BlogResponse, error)
}

type BlogQueryServiceSelectBlogsCallbacks

type BlogQueryServiceSelectBlogsCallbacks struct {
	BeforeQueryCallback []func(queryString string, req *BlogIdsRequest) error
	AfterQueryCallback  []func(queryString string, req *BlogIdsRequest, resp []*BlogResponse) error
	Cache               func(queryString string, req *BlogIdsRequest) ([]*BlogResponse, error)
}

type BlogQueryServiceSelectDetailedBlogCallbacks

type BlogQueryServiceSelectDetailedBlogCallbacks struct {
	BeforeQueryCallback []func(queryString string, req *BlogRequest) error
	AfterQueryCallback  []func(queryString string, req *BlogRequest, resp *DetailedBlogResponse) error
	Cache               func(queryString string, req *BlogRequest) (*DetailedBlogResponse, error)
}

type BlogQueryServiceSelectDetailedBlogsCallbacks

type BlogQueryServiceSelectDetailedBlogsCallbacks struct {
	BeforeQueryCallback []func(queryString string, req *BlogIdsRequest) error
	AfterQueryCallback  []func(queryString string, req *BlogIdsRequest, resp []*DetailedBlogResponse) error
	Cache               func(queryString string, req *BlogIdsRequest) ([]*DetailedBlogResponse, error)
}

type BlogQueryServiceServer

type BlogQueryServiceServer interface {
	SelectBlog(context.Context, *BlogRequest) (*BlogResponse, error)
	SelectBlogs(*BlogIdsRequest, BlogQueryService_SelectBlogsServer) error
	SelectDetailedBlog(context.Context, *BlogRequest) (*DetailedBlogResponse, error)
	SelectDetailedBlogs(*BlogIdsRequest, BlogQueryService_SelectDetailedBlogsServer) error
}

BlogQueryServiceServer is the server API for BlogQueryService service.

type BlogQueryService_SelectBlogsClient

type BlogQueryService_SelectBlogsClient interface {
	Recv() (*BlogResponse, error)
	grpc.ClientStream
}

type BlogQueryService_SelectBlogsServer

type BlogQueryService_SelectBlogsServer interface {
	Send(*BlogResponse) error
	grpc.ServerStream
}

type BlogQueryService_SelectDetailedBlogsClient

type BlogQueryService_SelectDetailedBlogsClient interface {
	Recv() (*DetailedBlogResponse, error)
	grpc.ClientStream
}

type BlogQueryService_SelectDetailedBlogsServer

type BlogQueryService_SelectDetailedBlogsServer interface {
	Send(*DetailedBlogResponse) error
	grpc.ServerStream
}

type BlogRequest

type BlogRequest struct {
	Id       uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AuthorId uint32 `protobuf:"varint,2,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BlogRequest) Descriptor deprecated

func (*BlogRequest) Descriptor() ([]byte, []int)

Deprecated: Use BlogRequest.ProtoReflect.Descriptor instead.

func (*BlogRequest) GetAuthorId

func (x *BlogRequest) GetAuthorId() uint32

func (*BlogRequest) GetId

func (x *BlogRequest) GetId() uint32

func (*BlogRequest) ProtoMessage

func (*BlogRequest) ProtoMessage()

func (*BlogRequest) ProtoReflect

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

func (*BlogRequest) Reset

func (x *BlogRequest) Reset()

func (*BlogRequest) String

func (x *BlogRequest) String() string

type BlogResponse

type BlogResponse struct {
	Id       uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title    string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	AuthorId string `protobuf:"bytes,3,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BlogResponse) Descriptor deprecated

func (*BlogResponse) Descriptor() ([]byte, []int)

Deprecated: Use BlogResponse.ProtoReflect.Descriptor instead.

func (*BlogResponse) GetAuthorId

func (x *BlogResponse) GetAuthorId() string

func (*BlogResponse) GetId

func (x *BlogResponse) GetId() uint32

func (*BlogResponse) GetTitle

func (x *BlogResponse) GetTitle() string

func (*BlogResponse) ProtoMessage

func (*BlogResponse) ProtoMessage()

func (*BlogResponse) ProtoReflect

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

func (*BlogResponse) Reset

func (x *BlogResponse) Reset()

func (*BlogResponse) String

func (x *BlogResponse) String() string

type Comment

type Comment struct {
	CommentId     uint32 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	CommentPostId uint32 `protobuf:"varint,2,opt,name=comment_post_id,json=commentPostId,proto3" json:"comment_post_id,omitempty"`
	CommentName   string `protobuf:"bytes,3,opt,name=comment_name,json=commentName,proto3" json:"comment_name,omitempty"`
	CommentText   string `protobuf:"bytes,4,opt,name=comment_text,json=commentText,proto3" json:"comment_text,omitempty"`
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

func (*Comment) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetCommentId

func (x *Comment) GetCommentId() uint32

func (*Comment) GetCommentName

func (x *Comment) GetCommentName() string

func (*Comment) GetCommentPostId

func (x *Comment) GetCommentPostId() uint32

func (*Comment) GetCommentText

func (x *Comment) GetCommentText() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type DetailedBlogResponse

type DetailedBlogResponse struct {
	BlogId    uint32  `protobuf:"varint,1,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"`
	BlogTitle string  `protobuf:"bytes,2,opt,name=blog_title,json=blogTitle,proto3" json:"blog_title,omitempty"`
	Author    *Author `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Posts     []*Post `protobuf:"bytes,4,rep,name=posts,proto3" json:"posts,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailedBlogResponse) Descriptor deprecated

func (*DetailedBlogResponse) Descriptor() ([]byte, []int)

Deprecated: Use DetailedBlogResponse.ProtoReflect.Descriptor instead.

func (*DetailedBlogResponse) GetAuthor

func (x *DetailedBlogResponse) GetAuthor() *Author

func (*DetailedBlogResponse) GetBlogId

func (x *DetailedBlogResponse) GetBlogId() uint32

func (*DetailedBlogResponse) GetBlogTitle

func (x *DetailedBlogResponse) GetBlogTitle() string

func (*DetailedBlogResponse) GetPosts

func (x *DetailedBlogResponse) GetPosts() []*Post

func (*DetailedBlogResponse) ProtoMessage

func (*DetailedBlogResponse) ProtoMessage()

func (*DetailedBlogResponse) ProtoReflect

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

func (*DetailedBlogResponse) Reset

func (x *DetailedBlogResponse) Reset()

func (*DetailedBlogResponse) String

func (x *DetailedBlogResponse) String() string

type EmptyResponse

type EmptyResponse struct {
	// contains filtered or unexported fields
}

func (*EmptyResponse) Descriptor deprecated

func (*EmptyResponse) Descriptor() ([]byte, []int)

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect

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

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

type InsertAuthorRequest

type InsertAuthorRequest struct {
	Id               uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username         string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password         string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Email            string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Bio              string `protobuf:"bytes,5,opt,name=bio,proto3" json:"bio,omitempty"`
	FavouriteSection string `protobuf:"bytes,6,opt,name=favourite_section,json=favouriteSection,proto3" json:"favourite_section,omitempty"`
	// contains filtered or unexported fields
}

func (*InsertAuthorRequest) Descriptor deprecated

func (*InsertAuthorRequest) Descriptor() ([]byte, []int)

Deprecated: Use InsertAuthorRequest.ProtoReflect.Descriptor instead.

func (*InsertAuthorRequest) GetBio

func (x *InsertAuthorRequest) GetBio() string

func (*InsertAuthorRequest) GetEmail

func (x *InsertAuthorRequest) GetEmail() string

func (*InsertAuthorRequest) GetFavouriteSection

func (x *InsertAuthorRequest) GetFavouriteSection() string

func (*InsertAuthorRequest) GetId

func (x *InsertAuthorRequest) GetId() uint32

func (*InsertAuthorRequest) GetPassword

func (x *InsertAuthorRequest) GetPassword() string

func (*InsertAuthorRequest) GetUsername

func (x *InsertAuthorRequest) GetUsername() string

func (*InsertAuthorRequest) ProtoMessage

func (*InsertAuthorRequest) ProtoMessage()

func (*InsertAuthorRequest) ProtoReflect

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

func (*InsertAuthorRequest) Reset

func (x *InsertAuthorRequest) Reset()

func (*InsertAuthorRequest) String

func (x *InsertAuthorRequest) String() string

type InsertServiceClient

type InsertServiceClient interface {
	InsertAuthor(ctx context.Context, in *InsertAuthorRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

InsertServiceClient is the client API for InsertService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type InsertServiceInsertAuthorCallbacks

type InsertServiceInsertAuthorCallbacks struct {
	BeforeQueryCallback []func(queryString string, req *InsertAuthorRequest) error
	AfterQueryCallback  []func(queryString string, req *InsertAuthorRequest, resp *EmptyResponse) error
	Cache               func(queryString string, req *InsertAuthorRequest) (*EmptyResponse, error)
}

type InsertServiceMapServer

type InsertServiceMapServer struct {
	DB      *sql.DB
	Dialect string

	InsertAuthorMapper    *mapper.Mapper
	InsertAuthorCallbacks InsertServiceInsertAuthorCallbacks
	// contains filtered or unexported fields
}

func (*InsertServiceMapServer) InsertAuthor

func (*InsertServiceMapServer) RegisterInsertAuthorAfterQueryCallback

func (m *InsertServiceMapServer) RegisterInsertAuthorAfterQueryCallback(callbacks ...func(queryString string, req *InsertAuthorRequest, resp *EmptyResponse) error)

func (*InsertServiceMapServer) RegisterInsertAuthorBeforeQueryCallback

func (m *InsertServiceMapServer) RegisterInsertAuthorBeforeQueryCallback(callbacks ...func(queryString string, req *InsertAuthorRequest) error)

func (*InsertServiceMapServer) RegisterInsertAuthorCache

func (m *InsertServiceMapServer) RegisterInsertAuthorCache(cache func(queryString string, req *InsertAuthorRequest) (*EmptyResponse, error))

type InsertServiceServer

type InsertServiceServer interface {
	InsertAuthor(context.Context, *InsertAuthorRequest) (*EmptyResponse, error)
}

InsertServiceServer is the server API for InsertService service.

type Post

type Post struct {
	PostId        uint32               `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	PostBlogId    uint32               `protobuf:"varint,2,opt,name=post_blog_id,json=postBlogId,proto3" json:"post_blog_id,omitempty"`
	PostAuthorId  uint32               `protobuf:"varint,3,opt,name=post_author_id,json=postAuthorId,proto3" json:"post_author_id,omitempty"`
	PostCreatedOn *timestamp.Timestamp `protobuf:"bytes,4,opt,name=post_created_on,json=postCreatedOn,proto3" json:"post_created_on,omitempty"`
	PostSection   Section              `protobuf:"varint,5,opt,name=post_section,json=postSection,proto3,enum=examples.Section" json:"post_section,omitempty"`
	PostSubject   string               `protobuf:"bytes,6,opt,name=post_subject,json=postSubject,proto3" json:"post_subject,omitempty"`
	Draft         string               `protobuf:"bytes,7,opt,name=draft,proto3" json:"draft,omitempty"`
	PostBody      string               `protobuf:"bytes,8,opt,name=post_body,json=postBody,proto3" json:"post_body,omitempty"`
	Comments      []*Comment           `protobuf:"bytes,9,rep,name=comments,proto3" json:"comments,omitempty"`
	Tags          []*Tag               `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Post) Descriptor deprecated

func (*Post) Descriptor() ([]byte, []int)

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetComments

func (x *Post) GetComments() []*Comment

func (*Post) GetDraft

func (x *Post) GetDraft() string

func (*Post) GetPostAuthorId

func (x *Post) GetPostAuthorId() uint32

func (*Post) GetPostBlogId

func (x *Post) GetPostBlogId() uint32

func (*Post) GetPostBody

func (x *Post) GetPostBody() string

func (*Post) GetPostCreatedOn

func (x *Post) GetPostCreatedOn() *timestamp.Timestamp

func (*Post) GetPostId

func (x *Post) GetPostId() uint32

func (*Post) GetPostSection

func (x *Post) GetPostSection() Section

func (*Post) GetPostSubject

func (x *Post) GetPostSubject() string

func (*Post) GetTags

func (x *Post) GetTags() []*Tag

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

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

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

type Section

type Section int32
const (
	Section_cooking      Section = 0
	Section_painting     Section = 1
	Section_woodworking  Section = 2
	Section_snowboarding Section = 3
)

func (Section) Descriptor

func (Section) Descriptor() protoreflect.EnumDescriptor

func (Section) Enum

func (x Section) Enum() *Section

func (Section) EnumDescriptor deprecated

func (Section) EnumDescriptor() ([]byte, []int)

Deprecated: Use Section.Descriptor instead.

func (Section) Number

func (x Section) Number() protoreflect.EnumNumber

func (Section) String

func (x Section) String() string

func (Section) Type

func (Section) Type() protoreflect.EnumType

type Tag

type Tag struct {
	TagId   uint32 `protobuf:"varint,1,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"`
	TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

func (*Tag) Descriptor() ([]byte, []int)

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetTagId

func (x *Tag) GetTagId() uint32

func (*Tag) GetTagName

func (x *Tag) GetTagName() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type UnimplementedBlogQueryServiceServer

type UnimplementedBlogQueryServiceServer struct {
}

UnimplementedBlogQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBlogQueryServiceServer) SelectBlog

func (*UnimplementedBlogQueryServiceServer) SelectBlogs

func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlog

func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlogs

type UnimplementedInsertServiceServer

type UnimplementedInsertServiceServer struct {
}

UnimplementedInsertServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedInsertServiceServer) InsertAuthor

Jump to

Keyboard shortcuts

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