domain

package
v0.0.0-...-15687f6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ID   uuid.UUID `json:"id"`
	Data []byte    `json:"data"`
}

type Repo

type Repo interface {
	Set(key string, data []byte) error
	GetByKey(key string) ([]byte, error)
}

type UseCase

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

func New

func New(
	repo Repo,
) *UseCase

func (*UseCase) DataGetByKey

func (uc *UseCase) DataGetByKey(key uuid.UUID) (*Data, error)

func (*UseCase) DataSet

func (uc *UseCase) DataSet(data *Data) error

Jump to

Keyboard shortcuts

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