service

package
v0.0.0-...-ffe4551 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListToDosReqest

type ListToDosReqest struct {
	IDs      []string
	Cursor   string
	PageSize int32
}

type Service

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

func NewService

func NewService(log *zap.Logger, repository *repository.Repository, nec *nats.EncodedConn) *Service

func (*Service) CreateToDos

func (s *Service) CreateToDos(ctx context.Context, creates []todo.ToDo) ([]todo.ToDo, error)

func (*Service) ListToDos

func (s *Service) ListToDos(ctx context.Context, request ListToDosReqest) ([]todo.ToDo, error)

Jump to

Keyboard shortcuts

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