postsvc

package
v0.0.0-...-839fe76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 New

func New(relDb *sql.DB, driver string, offset uint64) (*PostSvc, error)

New returns a pointer to a PostSvc instance or an error.

func (*PostSvc) AddPost

func (s *PostSvc) AddPost(ctx context.Context, req *pb.AddPostReq) (*pb.PostResp, error)

AddPost implements part of the pb.PostServer interface.

func (*PostSvc) AddType

func (s *PostSvc) AddType(ctx context.Context, req *pb.AddTypeReq) (*pb.TypeResp, error)

AddType implements part of the pb.PostServer interface.

func (*PostSvc) FndPosts

func (s *PostSvc) FndPosts(ctx context.Context, req *pb.FndPostsReq) (*pb.PostsResp, error)

FndPosts implements part of the pb.PostServer interface.

func (*PostSvc) FndTypes

func (s *PostSvc) FndTypes(ctx context.Context, req *pb.FndTypesReq) (*pb.TypesResp, error)

FndTypes implements part of the pb.PostServer interface.

func (*PostSvc) MigrationData

func (s *PostSvc) MigrationData() (string, map[string][]byte)

MigrationData ...

func (*PostSvc) OvrPost

func (s *PostSvc) OvrPost(ctx context.Context, req *pb.OvrPostReq) (*pb.PostResp, error)

OvrPost implements part of the pb.PostServer interface.

func (*PostSvc) RegisterWithGRPCServer

func (s *PostSvc) RegisterWithGRPCServer(g *grpc.Server) error

RegisterWithGRPCServer implements the grpcsrv.Registerable interface.

func (*PostSvc) Regularize

func (s *PostSvc) Regularize(ctx context.Context) error

Regularize ...

func (*PostSvc) RmvPost

func (s *PostSvc) RmvPost(ctx context.Context, req *pb.RmvPostReq) (*pb.RmvPostResp, error)

RmvPost implements part of the pb.PostServer interface.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL