Skip to content

Instantly share code, notes, and snippets.

@bxcodec
Created August 10, 2017 09:55
Show Gist options
  • Select an option

  • Save bxcodec/4db5663b26a17a5155503eefb6bbe864 to your computer and use it in GitHub Desktop.

Select an option

Save bxcodec/4db5663b26a17a5155503eefb6bbe864 to your computer and use it in GitHub Desktop.
ArticleHandlerServer interface
// Server API for ArticleHandler service
type ArticleHandlerServer interface {
GetArticle(context.Context, *SingleRequest) (*Article, error)
FetchArticle(*FetchRequest, ArticleHandler_FetchArticleServer) error
GetListArticle(context.Context, *FetchRequest) (*ListArticle, error)
UpdateArticle(context.Context, *Article) (*Article, error)
Delete(context.Context, *SingleRequest) (*DeleteResponse, error)
Store(context.Context, *Article) (*Article, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment