app

package
v2.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(path string) error
func SetConfig(path string) *Config {
	if path == "" {
		path = GetCurrentDirectory() + "/configs/data.yml"
	}
	conf := &Config{}
	var buffer bytes.Buffer
	buffer.WriteString(path)
	fp := buffer.String()
	if ymlFile, err := ioutil.ReadFile(fp); err != nil {
		panic(err)
	} else if err = yaml.Unmarshal(ymlFile, &conf); err != nil {
		panic(err)
	}
	return conf
}

Init init run environment

func NewCommand

func NewCommand() (cmd *cobra.Command)

NewCommand returns a new command for binlogo server

func RunConsole

func RunConsole(c context.Context) (err error)

RunConsole run gin

func RunEvent

func RunEvent()

RunEvent start event recorder goroutine

func RunNode

func RunNode(c context.Context) (err error)

RunNode run node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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