core

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

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

func (AppConfig) Get

func (c AppConfig) Get(key string) string

func (*AppConfig) Parse

func (c *AppConfig) Parse(fileName string)

type ArchValue

type ArchValue struct {
	X86 interface{} `yaml:"x86"`
	Arm interface{} `yaml:"arm"`
}

func (ArchValue) Get

func (v ArchValue) Get() string

func (ArchValue) GetInt

func (v ArchValue) GetInt() int

type EnvValue

type EnvValue struct {
	Default interface{} `yaml:"default"`
	Env     interface{} `yaml:"env"`
}

func (EnvValue) Get

func (v EnvValue) Get() string

func (EnvValue) GetInt

func (v EnvValue) GetInt() int

type Service

type Service[T any] struct {
	// contains filtered or unexported fields
}

func NewService

func NewService[ServiceT any]() *Service[ServiceT]

func (*Service[T]) Async

func (s *Service[T]) Async(operateType string, instance T)

func (*Service[T]) RegisterAsync

func (s *Service[T]) RegisterAsync(operateType string, asyncFunc func(instance T))

Jump to

Keyboard shortcuts

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