system

package
v0.0.0-...-e4e9d17 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrURIParseError = errors.New("URI parse error")
	ErrInvalidScheme = errors.New("invalid scheme")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	PersistenceURI persistence.URI
}

func NewConfig

func NewConfig(opts ...Option) (*Config, error)

NewConfig builds a new config using the given options.

type Option

type Option func(*Config) error

func WithPersistenceURI

func WithPersistenceURI(uri string) Option

WithPersistenceURI sets the persistence URI. Example: "db:bbolt:./my-db".

type System

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

func Boot

func Boot(config Config) (*System, error)

func (System) InitContext

func (s System) InitContext() *actor.RootContext

func (System) Wait

func (s System) Wait()

Directories

Path Synopsis
sys
usr
log
v1

Jump to

Keyboard shortcuts

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