Documentation ¶
Index ¶
- type PostSvc
- func (s *PostSvc) AddPost(ctx context.Context, req *pb.AddPostReq) (*pb.PostResp, error)
- func (s *PostSvc) AddType(ctx context.Context, req *pb.AddTypeReq) (*pb.TypeResp, error)
- func (s *PostSvc) FndPosts(ctx context.Context, req *pb.FndPostsReq) (*pb.PostsResp, error)
- func (s *PostSvc) FndTypes(ctx context.Context, req *pb.FndTypesReq) (*pb.TypesResp, error)
- func (s *PostSvc) MigrationData() (string, map[string][]byte)
- func (s *PostSvc) OvrPost(ctx context.Context, req *pb.OvrPostReq) (*pb.PostResp, error)
- func (s *PostSvc) RegisterWithGRPCServer(g *grpc.Server) error
- func (s *PostSvc) Regularize(ctx context.Context) error
- func (s *PostSvc) RmvPost(ctx context.Context, req *pb.RmvPostReq) (*pb.RmvPostResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostSvc ¶
type PostSvc struct {
// contains filtered or unexported fields
}
PostSvc encapsulates dependencies and data required to implement the pb.PostServer interface.
func (*PostSvc) MigrationData ¶
MigrationData ...
func (*PostSvc) RegisterWithGRPCServer ¶
RegisterWithGRPCServer implements the grpcsrv.Registerable interface.
func (*PostSvc) RmvPost ¶
func (s *PostSvc) RmvPost(ctx context.Context, req *pb.RmvPostReq) (*pb.RmvPostResp, error)
RmvPost implements part of the pb.PostServer interface.
Click to show internal directories.
Click to hide internal directories.