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: 9 modules, 22 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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