preference

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Find() (*Settings, error)
	Create(i *Settings) error
}

type ScribbleRepository

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

func NewScribbleRepository

func NewScribbleRepository(driver *scribble.Driver) *ScribbleRepository

func (*ScribbleRepository) Create

func (r *ScribbleRepository) Create(i *Settings) error

func (*ScribbleRepository) Find

func (r *ScribbleRepository) Find() (*Settings, error)

type Service

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

func NewService

func NewService(r Repository) *Service

func (*Service) Create

func (s *Service) Create(c *Settings) error

func (*Service) Find

func (s *Service) Find() (*Settings, error)

type Settings

type Settings struct {
	DefaultBuild string `json:"defaultBuild"`
}

Jump to

Keyboard shortcuts

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