network

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(db *database.Database) *Storage

func (*Storage) Add

func (s *Storage) Add(ctx context.Context, network *entity.Network) (*entity.Network, error)

func (*Storage) Delete

func (s *Storage) Delete(ctx context.Context, id uint64) error

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, id uint64) (*entity.Network, error)

func (*Storage) List

func (s *Storage) List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.Network, error)

Jump to

Keyboard shortcuts

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