config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Prefix      string
	PrefixWebUI string
	Version     = "0.9.0"
	Config      ConfigCommon
)

Functions

func IamAppInstance

func IamAppInstance() iamapi.AppInstance

func InitIamAccessKeyData

func InitIamAccessKeyData() []hauth.AccessKey

func Setup

func Setup(prefix string) error

Types

type ConfigCommon

type ConfigCommon struct {
	InstanceId    string           `json:"instance_id" toml:"instance_id"`
	SecretKey     string           `json:"secret_key" toml:"secret_key"`
	HttpPort      uint16           `json:"http_port,omitempty" toml:"http_port,omitempty"`
	Database      *kvclient.Config `json:"database,omitempty" toml:"database,omitempty"`
	IamServiceUrl string           `json:"iam_service_url,omitempty" toml:"iam_service_url,omitempty"`
	PprofHttpPort uint16           `json:"pprof_http_port,omitempty" toml:"pprof_http_port,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigCommon) AccessKeyAuth

func (cfg *ConfigCommon) AccessKeyAuth() (iamapi.AccessKeyAuth, error)

func (*ConfigCommon) Sync

func (cfg *ConfigCommon) Sync() error

Jump to

Keyboard shortcuts

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