sterna

package module
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 7 Imported by: 22

README

github.com/94peter/sterna

test

Documentation

Index

Constants

View Source
const (
	CtxServDiKey = util.CtxKey("ServiceDI")
)

Variables

This section is empty.

Functions

func GetDiByCtx added in v1.0.0

func GetDiByCtx(ctx context.Context) interface{}

func IniConfByEnv

func IniConfByEnv(path, env string, di interface{})

初始化設定檔,讀YAML檔

func InitConfByByte added in v1.0.0

func InitConfByByte(b []byte, di interface{})

func InitConfByFile

func InitConfByFile(f string, di interface{})

func InitConfByUri added in v0.17.5

func InitConfByUri(uri string, di interface{}) error

func InitDefaultConf

func InitDefaultConf(path string, di interface{})

Types

type ChannelDI added in v1.4.0

type ChannelDI interface {
	CommonDI
	GetChannel() string
	SetChannel(string)
}

type CommonDI added in v1.4.0

type CommonDI interface {
	GetServiceName() string
	IsConfEmpty() error
}

Directories

Path Synopsis
api
err
mid
pdf
model
Package util provides a variety of handy functions while developing backends
Package util provides a variety of handy functions while developing backends

Jump to

Keyboard shortcuts

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