ports

package
v0.0.0-...-03d5641 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(context.Context, string, string) error
	Get(context.Context, string) (string, error)
	Delete(context.Context, string) error
}

type LinkPort

type LinkPort interface {
	All(context.Context) ([]domain.Link, error)
	Get(context.Context, string) (domain.Link, error)
	Create(context.Context, domain.Link) error
	Delete(context.Context, string) error
}

type StatsPort

type StatsPort interface {
	All(context.Context) ([]domain.Stats, error)
	Get(context.Context, string) (domain.Stats, error)
	Create(context.Context, domain.Stats) error
	Delete(context.Context, string) error
	GetStatsByLinkID(context.Context, string) ([]domain.Stats, error)
}

Jump to

Keyboard shortcuts

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