postdb

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostDB

type PostDB struct {
	// contains filtered or unexported fields
}

PostDB encapsulates dependencies and data required to implement the pb.PostServer interface.

func New

func New(relDB *sql.DB, driver string, offset uint64) (*PostDB, error)

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

func (*PostDB) AddPost

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

AddPost implements part of the pb.PostServer interface.

func (*PostDB) AddType

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

AddType implements part of the pb.PostServer interface.

func (*PostDB) FndPosts

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

FndPosts implements part of the pb.PostServer interface.

func (*PostDB) FndTypes

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

FndTypes implements part of the pb.PostServer interface.

func (*PostDB) OvrPost

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

OvrPost implements part of the pb.PostServer interface.

func (*PostDB) RmvPost

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

RmvPost implements part of the pb.PostServer interface.

Jump to

Keyboard shortcuts

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