pickpoint

package
v0.0.0-...-eda81a1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Create(ctx context.Context, object model.PickPoint) (uint64, error)
	GetByID(ctx context.Context, id uint64) (model.PickPoint, error)
	List(ctx context.Context) ([]model.PickPoint, error)
	Update(ctx context.Context, object model.PickPoint) (uint64, error)
	Delete(ctx context.Context, id uint64) error
}

type Sender

type Sender interface {
	SendMessage(message broker_io.RequestMessage)
}

type Service

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

func New

func New(controller Controller, sender Sender, cacher cache.Cache) *Service

func (*Service) Create

func (s *Service) Create(w http.ResponseWriter, req *http.Request)

func (*Service) Delete

func (s *Service) Delete(w http.ResponseWriter, req *http.Request)

func (*Service) Get

func (s *Service) Get(w http.ResponseWriter, req *http.Request)

func (*Service) List

func (s *Service) List(w http.ResponseWriter, req *http.Request)

func (*Service) Update

func (s *Service) Update(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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