Documentation ¶
Index ¶
- type BlogServer
- func (b *BlogServer) CreateArticle(ctx context.Context, r *gen.BlogRequest) (*gen.Blog, error)
- func (b *BlogServer) DeleteArticle(ctx context.Context, id *gen.Id) (*gen.Response, error)
- func (b *BlogServer) GetArticle(ctx context.Context, id *gen.Id) (*gen.Blog, error)
- func (b *BlogServer) Start(address string) error
- func (b *BlogServer) UpdateArticle(ctx context.Context, r *gen.BlogRequest) (*gen.Blog, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogServer ¶
type BlogServer struct { gen.UnimplementedBlogAdminServer // contains filtered or unexported fields }
func NewBlogServer ¶
func NewBlogServer(a blogger.BlogAdmin) *BlogServer
func (*BlogServer) CreateArticle ¶
func (b *BlogServer) CreateArticle(ctx context.Context, r *gen.BlogRequest) (*gen.Blog, error)
func (*BlogServer) DeleteArticle ¶
func (*BlogServer) GetArticle ¶
func (*BlogServer) Start ¶
func (b *BlogServer) Start(address string) error
func (*BlogServer) UpdateArticle ¶
func (b *BlogServer) UpdateArticle(ctx context.Context, r *gen.BlogRequest) (*gen.Blog, error)
Click to show internal directories.
Click to hide internal directories.