server

package
v0.0.0-...-2487f57 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRequest

type DeleteRequest struct {
}

type DeleteResult

type DeleteResult struct {
	Result  bool
	Message string
}

type DeleteService

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

func NewDeleteService

func NewDeleteService(logger loggers.ILogger, createDbNotReachableError bool) *DeleteService

func (*DeleteService) Delete

func (s *DeleteService) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResult, error)

type IDeleteService

type IDeleteService interface {
	Delete(ctx context.Context, req *DeleteRequest) (*DeleteResult, error)
}

type IListService

type IListService interface {
	List(ctx context.Context, req *ListRequest) (*ListResult, error)
}

type IStoreService

type IStoreService interface {
	Store(ctx context.Context, req *StoreRequest) (*StoreResult, error)
}

type ListRequest

type ListRequest struct {
	Limit int64
}

type ListResult

type ListResult struct {
	Result  bool
	Message string
	Body    []data.Task
}

type ListService

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

func NewListService

func NewListService(logger loggers.ILogger, createDbNotReachableError bool) *ListService

func (*ListService) List

func (s *ListService) List(ctx context.Context, req *ListRequest) (*ListResult, error)

type StoreRequest

type StoreRequest struct {
	Task string
}

type StoreResult

type StoreResult struct {
	Message string
	Body    *data.Task
}

type StoreService

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

func NewStoreService

func NewStoreService(logger loggers.ILogger, createDbNotReachableError bool) *StoreService

func (*StoreService) Store

func (s *StoreService) Store(ctx context.Context, req *StoreRequest) (*StoreResult, error)

Jump to

Keyboard shortcuts

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