Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) CreatePost(ctx context.Context, in *postspb.CreatePostRequest) (*postspb.CreatePostResponse, error)
- func (s *Server) GetPost(ctx context.Context, in *postspb.GetPostRequest) (*postspb.GetPostResponse, error)
- func (s *Server) GetPostChilds(ctx context.Context, in *postspb.GetPostRequest) (*postspb.GetPostsResponse, error)
- func (s *Server) GetPosts(ctx context.Context, in *postspb.GetPostsRequest) (*postspb.GetPostsResponse, error)
- func (s *Server) LikePost(ctx context.Context, in *postspb.LikeRequest) (*postspb.EmptyData, error)
- func (s *Server) Rezweet(ctx context.Context, in *postspb.RezweetRequest) (*postspb.CreatePostResponse, error)
- func (s *Server) SayHello(ctx context.Context, in *postspb.PingMessage) (*postspb.PingMessage, error)
- func (s *Server) UserFeed(ctx context.Context, in *postspb.EmptyData) (*postspb.GetPostsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigParseError = fmt.Errorf("Error while parsing the config")
View Source
var UsersServiceNotFoundError = fmt.Errorf("Users service not configured in config")
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { postspb.UnimplementedPostsServiceServer Log *zlog.ZwitLogger }
func (*Server) CreatePost ¶
func (s *Server) CreatePost(ctx context.Context, in *postspb.CreatePostRequest) (*postspb.CreatePostResponse, error)
func (*Server) GetPost ¶
func (s *Server) GetPost(ctx context.Context, in *postspb.GetPostRequest) (*postspb.GetPostResponse, error)
func (*Server) GetPostChilds ¶
func (s *Server) GetPostChilds(ctx context.Context, in *postspb.GetPostRequest) (*postspb.GetPostsResponse, error)
func (*Server) GetPosts ¶
func (s *Server) GetPosts(ctx context.Context, in *postspb.GetPostsRequest) (*postspb.GetPostsResponse, error)
func (*Server) Rezweet ¶
func (s *Server) Rezweet(ctx context.Context, in *postspb.RezweetRequest) (*postspb.CreatePostResponse, error)
func (*Server) SayHello ¶
func (s *Server) SayHello(ctx context.Context, in *postspb.PingMessage) (*postspb.PingMessage, error)
Click to show internal directories.
Click to hide internal directories.