resources

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoltRootBucket = []byte("root")

Functions

func Itob

func Itob(v int) []byte

Types

type Bolt

type Bolt struct {
	*bbolt.DB
	// contains filtered or unexported fields
}

func NewBolt

func NewBolt(path string) *Bolt

func (*Bolt) GetName

func (s *Bolt) GetName() string

func (*Bolt) Start

func (s *Bolt) Start() error

func (*Bolt) Stop

func (s *Bolt) Stop() error

func (*Bolt) Transaction

func (d *Bolt) Transaction(fn func() error) error

type ResourceService

type ResourceService interface {
	GetName() string
	Start() error
	Stop() error
}

type Service

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

func NewService

func NewService(resources ...ResourceService) *Service

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop()

Jump to

Keyboard shortcuts

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