FlySettings

package
v0.0.0-...-741ab34 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlySettings

type FlySettings struct {
	FlyDB FlyDatabase.FlyDatabaseInterface
	Ready bool

	API jsoniter.API
}

func NewFlySettings

func NewFlySettings() *FlySettings

func (*FlySettings) Get

func (s *FlySettings) Get(key string) jsoniter.Any

func (*FlySettings) GetBool

func (s *FlySettings) GetBool(key string, defaults bool) bool

func (*FlySettings) GetByte

func (s *FlySettings) GetByte(key string) ([]byte, error)

func (*FlySettings) GetFloat64

func (s *FlySettings) GetFloat64(key string, defaults float64) float64

func (*FlySettings) GetInt

func (s *FlySettings) GetInt(key string, defaults int) int

func (*FlySettings) GetInt64

func (s *FlySettings) GetInt64(key string, defaults int64) int64

func (*FlySettings) GetObj

func (s *FlySettings) GetObj(key string, obj any) error

func (*FlySettings) GetString

func (s *FlySettings) GetString(key string, defaults string) string

func (*FlySettings) Open

获取串口配置名称

func (*FlySettings) Set

func (s *FlySettings) Set(key string, value any) error

func (*FlySettings) SetByte

func (s *FlySettings) SetByte(key string, value []byte)

type FlySettingsTable

type FlySettingsTable struct {
	gorm.Model
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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