database

package
v0.0.0-...-39f199c Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DraftServerImpl

type DraftServerImpl struct {
	DB *sql.DB
}

func (*DraftServerImpl) CreateDraft

func (s *DraftServerImpl) CreateDraft(ctx context.Context, in *pb.CreateDraftRequest) (*pb.Draft, error)

func (*DraftServerImpl) DeleteDraft

func (s *DraftServerImpl) DeleteDraft(ctx context.Context, in *pb.DeleteDraftRequest) (*empty.Empty, error)

func (*DraftServerImpl) GetDraft

func (s *DraftServerImpl) GetDraft(ctx context.Context, in *pb.GetDraftRequest) (*pb.Draft, error)

func (*DraftServerImpl) ListDrafts

func (*DraftServerImpl) SendDraft

func (s *DraftServerImpl) SendDraft(ctx context.Context, in *pb.SendDraftRequest) (*pb.Email, error)

func (*DraftServerImpl) UpdateDraft

func (s *DraftServerImpl) UpdateDraft(ctx context.Context, in *pb.UpdateDraftRequest) (*pb.Draft, error)

type MessageServerImpl

type MessageServerImpl struct {
	DB *sql.DB
}

func (*MessageServerImpl) CreateDraft

func (s *MessageServerImpl) CreateDraft(ctx context.Context, in *pb.CreateDraftRequest) (*pb.Draft, error)

func (*MessageServerImpl) DeleteDraft

func (s *MessageServerImpl) DeleteDraft(ctx context.Context, in *pb.DeleteDraftRequest) (*empty.Empty, error)

func (*MessageServerImpl) SendDraft

func (s *MessageServerImpl) SendDraft(ctx context.Context, in *pb.SendDraftRequest) (*pb.Email, error)

func (*MessageServerImpl) UpdateDraft

func (s *MessageServerImpl) UpdateDraft(ctx context.Context, in *pb.UpdateDraftRequest) (*pb.Draft, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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