opening

package
v0.0.0-...-926ba8e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenRequest

type OpenRequest struct {
	ID     int  `json:"id"`
	IsOpen bool `json:"isopen"`
}

OpenRequest holds the request data

type Repository

type Repository interface {
	OpenItem(OpenRequest) error
}

Repository provides access to item repository.

type Service

type Service interface {
	OpenItem(OpenRequest) error
}

Service provides beer adding operations.

func NewService

func NewService(r Repository) Service

NewService creates an opening service with the necessary dependencies

Jump to

Keyboard shortcuts

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