texupd

package
v0.0.0-...-4d6605a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

func IsInvalidInput

func IsInvalidInput(err error) bool

func IsInvalidUser

func IsInvalidUser(err error) bool

Types

type Handler

type Handler struct {
	texupd.UnimplementedAPIServer
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(config HandlerConfig) (*Handler, error)

func (*Handler) Attach

func (h *Handler) Attach(g *grpc.Server)

func (*Handler) Create

func (h *Handler) Create(ctx context.Context, req *texupd.CreateI) (*texupd.CreateO, error)

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, req *texupd.DeleteI) (*texupd.DeleteO, error)

func (*Handler) Search

func (h *Handler) Search(ctx context.Context, req *texupd.SearchI) (*texupd.SearchO, error)

func (*Handler) Update

func (h *Handler) Update(ctx context.Context, req *texupd.UpdateI) (*texupd.UpdateO, error)

type HandlerConfig

type HandlerConfig struct {
	Logger  logger.Interface
	Storage *storage.Storage
}

Jump to

Keyboard shortcuts

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