Documentation ¶
Index ¶
- Variables
- func RegisterBlogQueryServiceServer(s *grpc.Server, srv BlogQueryServiceServer)
- func RegisterInsertServiceServer(s *grpc.Server, srv InsertServiceServer)
- type Author
- func (*Author) Descriptor() ([]byte, []int)deprecated
- func (x *Author) GetAuthorBio() string
- func (x *Author) GetAuthorEmail() string
- func (x *Author) GetAuthorFavouriteSection() Section
- func (x *Author) GetAuthorId() uint32
- func (x *Author) GetAuthorPassword() string
- func (x *Author) GetAuthorUsername() string
- func (*Author) ProtoMessage()
- func (x *Author) ProtoReflect() protoreflect.Message
- func (x *Author) Reset()
- func (x *Author) String() string
- type BlogIdsRequest
- func (*BlogIdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BlogIdsRequest) GetIds() []uint32
- func (x *BlogIdsRequest) GetTitles() []string
- func (*BlogIdsRequest) ProtoMessage()
- func (x *BlogIdsRequest) ProtoReflect() protoreflect.Message
- func (x *BlogIdsRequest) Reset()
- func (x *BlogIdsRequest) String() string
- type BlogQueryServiceClient
- type BlogQueryServiceMapServer
- func (m *BlogQueryServiceMapServer) RegisterSelectBlogAfterQueryCallback(...)
- func (m *BlogQueryServiceMapServer) RegisterSelectBlogBeforeQueryCallback(callbacks ...func(queryString string, req *BlogRequest) error)
- func (m *BlogQueryServiceMapServer) RegisterSelectBlogCache(cache func(queryString string, req *BlogRequest) (*BlogResponse, error))
- func (m *BlogQueryServiceMapServer) RegisterSelectBlogsAfterQueryCallback(...)
- func (m *BlogQueryServiceMapServer) RegisterSelectBlogsBeforeQueryCallback(callbacks ...func(queryString string, req *BlogIdsRequest) error)
- func (m *BlogQueryServiceMapServer) RegisterSelectBlogsCache(cache func(queryString string, req *BlogIdsRequest) ([]*BlogResponse, error))
- func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogAfterQueryCallback(...)
- func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogBeforeQueryCallback(callbacks ...func(queryString string, req *BlogRequest) error)
- func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogCache(...)
- func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogsAfterQueryCallback(...)
- func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogsBeforeQueryCallback(callbacks ...func(queryString string, req *BlogIdsRequest) error)
- func (m *BlogQueryServiceMapServer) RegisterSelectDetailedBlogsCache(...)
- func (m *BlogQueryServiceMapServer) SelectBlog(ctx context.Context, r *BlogRequest) (*BlogResponse, error)
- func (m *BlogQueryServiceMapServer) SelectBlogs(r *BlogIdsRequest, stream BlogQueryService_SelectBlogsServer) error
- func (m *BlogQueryServiceMapServer) SelectDetailedBlog(ctx context.Context, r *BlogRequest) (*DetailedBlogResponse, error)
- func (m *BlogQueryServiceMapServer) SelectDetailedBlogs(r *BlogIdsRequest, stream BlogQueryService_SelectDetailedBlogsServer) error
- type BlogQueryServiceSelectBlogCallbacks
- type BlogQueryServiceSelectBlogsCallbacks
- type BlogQueryServiceSelectDetailedBlogCallbacks
- type BlogQueryServiceSelectDetailedBlogsCallbacks
- type BlogQueryServiceServer
- type BlogQueryService_SelectBlogsClient
- type BlogQueryService_SelectBlogsServer
- type BlogQueryService_SelectDetailedBlogsClient
- type BlogQueryService_SelectDetailedBlogsServer
- type BlogRequest
- type BlogResponse
- func (*BlogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BlogResponse) GetAuthorId() string
- func (x *BlogResponse) GetId() uint32
- func (x *BlogResponse) GetTitle() string
- func (*BlogResponse) ProtoMessage()
- func (x *BlogResponse) ProtoReflect() protoreflect.Message
- func (x *BlogResponse) Reset()
- func (x *BlogResponse) String() string
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetCommentId() uint32
- func (x *Comment) GetCommentName() string
- func (x *Comment) GetCommentPostId() uint32
- func (x *Comment) GetCommentText() string
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type DetailedBlogResponse
- func (*DetailedBlogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DetailedBlogResponse) GetAuthor() *Author
- func (x *DetailedBlogResponse) GetBlogId() uint32
- func (x *DetailedBlogResponse) GetBlogTitle() string
- func (x *DetailedBlogResponse) GetPosts() []*Post
- func (*DetailedBlogResponse) ProtoMessage()
- func (x *DetailedBlogResponse) ProtoReflect() protoreflect.Message
- func (x *DetailedBlogResponse) Reset()
- func (x *DetailedBlogResponse) String() string
- type EmptyResponse
- type InsertAuthorRequest
- func (*InsertAuthorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InsertAuthorRequest) GetBio() string
- func (x *InsertAuthorRequest) GetEmail() string
- func (x *InsertAuthorRequest) GetFavouriteSection() string
- func (x *InsertAuthorRequest) GetId() uint32
- func (x *InsertAuthorRequest) GetPassword() string
- func (x *InsertAuthorRequest) GetUsername() string
- func (*InsertAuthorRequest) ProtoMessage()
- func (x *InsertAuthorRequest) ProtoReflect() protoreflect.Message
- func (x *InsertAuthorRequest) Reset()
- func (x *InsertAuthorRequest) String() string
- type InsertServiceClient
- type InsertServiceInsertAuthorCallbacks
- type InsertServiceMapServer
- func (m *InsertServiceMapServer) InsertAuthor(ctx context.Context, r *InsertAuthorRequest) (*EmptyResponse, error)
- func (m *InsertServiceMapServer) RegisterInsertAuthorAfterQueryCallback(...)
- func (m *InsertServiceMapServer) RegisterInsertAuthorBeforeQueryCallback(callbacks ...func(queryString string, req *InsertAuthorRequest) error)
- func (m *InsertServiceMapServer) RegisterInsertAuthorCache(...)
- type InsertServiceServer
- type Post
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (x *Post) GetComments() []*Comment
- func (x *Post) GetDraft() string
- func (x *Post) GetPostAuthorId() uint32
- func (x *Post) GetPostBlogId() uint32
- func (x *Post) GetPostBody() string
- func (x *Post) GetPostCreatedOn() *timestamp.Timestamp
- func (x *Post) GetPostId() uint32
- func (x *Post) GetPostSection() Section
- func (x *Post) GetPostSubject() string
- func (x *Post) GetTags() []*Tag
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (x *Post) String() string
- type Section
- type Tag
- type UnimplementedBlogQueryServiceServer
- func (*UnimplementedBlogQueryServiceServer) SelectBlog(context.Context, *BlogRequest) (*BlogResponse, error)
- func (*UnimplementedBlogQueryServiceServer) SelectBlogs(*BlogIdsRequest, BlogQueryService_SelectBlogsServer) error
- func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlog(context.Context, *BlogRequest) (*DetailedBlogResponse, error)
- func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlogs(*BlogIdsRequest, BlogQueryService_SelectDetailedBlogsServer) error
- type UnimplementedInsertServiceServer
Constants ¶
This section is empty.
Variables ¶
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.
var EnumValueMaps = map[string]map[string]int32{ "Section": map[string]int32{ "cooking": 0, "painting": 1, "snowboarding": 3, "woodworking": 2, }, }
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) GetAuthorBio ¶
func (*Author) GetAuthorEmail ¶
func (*Author) GetAuthorFavouriteSection ¶
func (*Author) GetAuthorId ¶
func (*Author) GetAuthorPassword ¶
func (*Author) GetAuthorUsername ¶
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
func (*Author) ProtoReflect ¶
func (x *Author) ProtoReflect() protoreflect.Message
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.
func NewBlogQueryServiceClient ¶
func NewBlogQueryServiceClient(cc grpc.ClientConnInterface) BlogQueryServiceClient
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 (m *BlogQueryServiceMapServer) SelectBlog(ctx context.Context, r *BlogRequest) (*BlogResponse, error)
func (*BlogQueryServiceMapServer) SelectBlogs ¶
func (m *BlogQueryServiceMapServer) SelectBlogs(r *BlogIdsRequest, stream BlogQueryService_SelectBlogsServer) error
func (*BlogQueryServiceMapServer) SelectDetailedBlog ¶
func (m *BlogQueryServiceMapServer) SelectDetailedBlog(ctx context.Context, r *BlogRequest) (*DetailedBlogResponse, error)
func (*BlogQueryServiceMapServer) SelectDetailedBlogs ¶
func (m *BlogQueryServiceMapServer) SelectDetailedBlogs(r *BlogIdsRequest, stream BlogQueryService_SelectDetailedBlogsServer) error
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) GetCommentId ¶
func (*Comment) GetCommentName ¶
func (*Comment) GetCommentPostId ¶
func (*Comment) GetCommentText ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
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.
func NewInsertServiceClient ¶
func NewInsertServiceClient(cc grpc.ClientConnInterface) InsertServiceClient
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 (m *InsertServiceMapServer) InsertAuthor(ctx context.Context, r *InsertAuthorRequest) (*EmptyResponse, error)
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) GetComments ¶
func (*Post) GetPostAuthorId ¶
func (*Post) GetPostBlogId ¶
func (*Post) GetPostBody ¶
func (*Post) GetPostCreatedOn ¶
func (*Post) GetPostSection ¶
func (*Post) GetPostSubject ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
type Section ¶
type Section int32
func (Section) Descriptor ¶
func (Section) Descriptor() protoreflect.EnumDescriptor
func (Section) EnumDescriptor
deprecated
func (Section) Number ¶
func (x Section) Number() protoreflect.EnumNumber
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) GetTagName ¶
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type UnimplementedBlogQueryServiceServer ¶
type UnimplementedBlogQueryServiceServer struct { }
UnimplementedBlogQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBlogQueryServiceServer) SelectBlog ¶
func (*UnimplementedBlogQueryServiceServer) SelectBlog(context.Context, *BlogRequest) (*BlogResponse, error)
func (*UnimplementedBlogQueryServiceServer) SelectBlogs ¶
func (*UnimplementedBlogQueryServiceServer) SelectBlogs(*BlogIdsRequest, BlogQueryService_SelectBlogsServer) error
func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlog ¶
func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlog(context.Context, *BlogRequest) (*DetailedBlogResponse, error)
func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlogs ¶
func (*UnimplementedBlogQueryServiceServer) SelectDetailedBlogs(*BlogIdsRequest, BlogQueryService_SelectDetailedBlogsServer) error
type UnimplementedInsertServiceServer ¶
type UnimplementedInsertServiceServer struct { }
UnimplementedInsertServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedInsertServiceServer) InsertAuthor ¶
func (*UnimplementedInsertServiceServer) InsertAuthor(context.Context, *InsertAuthorRequest) (*EmptyResponse, error)