config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigRepo

type ConfigRepo interface {
	Get(key string) (interface{}, error)
	GetString(key string) (string, error)
	GetInt(key string) (int, error)
	GetArrayString(key string) ([]string, error)
	GetConfigType(key string) (int, error)
	GetJsonConfigByIDAndSetToObject(id int, value any) (err error)
	SetConfig(key, value string) (err error)
}

ConfigRepo config repository

type ConfigService

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

ConfigService user service

func NewConfigService

func NewConfigService(configRepo ConfigRepo) *ConfigService

Jump to

Keyboard shortcuts

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