console.go 383 字节
Newer Older
Y
Your Name 已提交
1 2 3
package console

import (
Y
Your Name 已提交
4
	"github.com/eolinker/goku-api-gateway/config"
Y
Your Name 已提交
5 6
)

Y
Your Name 已提交
7 8 9 10 11 12 13
//ConfigConsole configConsole
type ConfigConsole interface {
	Close()
	AddListen(callback ConfigCallbackFunc)
	GetConfig() (*config.GokuConfig, error)
	RegisterToConsole() (*config.GokuConfig, error)
	Listen()
Y
Your Name 已提交
14 15
}

Y
Your Name 已提交
16 17
//ConfigCallbackFunc configCallbackFunc
type ConfigCallbackFunc func(conf *config.GokuConfig)