Documentation
¶
Index ¶
- Constants
- Variables
- func CreateSerfInstance(conf *serf.Config, clock uint64, members []string, ...) (*serf.Serf, error)
- func FullVersion(app string) string
- func InitParse()
- func LogStarting(name string, info *ServerInfo)
- func RemovePIDFile(pidfile string)
- func Run(args []string, commands ...*Command)
- func WritePIDFile(pidfile string) error
- type Command
- type Options
- type ProactiveManager
- func (pm *ProactiveManager) Close() error
- func (pm *ProactiveManager) GetQueryList(cnt int) []uint64
- func (pm *ProactiveManager) KillQuery(id uint64)
- func (pm *ProactiveManager) Open() error
- func (pm *ProactiveManager) SetInspectInterval(interval time.Duration)
- func (pm *ProactiveManager) WithLogger(logger *logger.Logger)
- type Server
- type ServerInfo
- type Service
- type ServiceGroup
Constants ¶
View Source
const METALOGO = `` /* 391-byte string literal not displayed */
View Source
const MONITORLOGO = `` /* 552-byte string literal not displayed */
View Source
const MainUsage = `` /* 339-byte string literal not displayed */
View Source
const RunUsage = `` /* 175-byte string literal not displayed */
View Source
const SQLLOGO = `` /* 300-byte string literal not displayed */
View Source
const STORELOGO = `` /* 439-byte string literal not displayed */
View Source
const TSDATALOGO = `` /* 367-byte string literal not displayed */
View Source
const TSSERVER = `` /* 505-byte string literal not displayed */
Variables ¶
View Source
var ( Version string GitCommit string GitBranch string BuildTime string )
Version information, the value is set by the build script
Functions ¶
func CreateSerfInstance ¶
func FullVersion ¶ added in v1.3.0
FullVersion returns the full version string.
func LogStarting ¶ added in v1.1.0
func LogStarting(name string, info *ServerInfo)
func RemovePIDFile ¶
func RemovePIDFile(pidfile string)
func WritePIDFile ¶
Types ¶
type Command ¶
type Command struct {
Logo string
Usage string
Pidfile string
Logger *logger.Logger
Command *cobra.Command
Info ServerInfo
Version string
Server Server
Config config.Config
NewServerFunc func(config.Config, ServerInfo, *logger.Logger) (Server, error)
AfterOpen func()
}
Command represents the command executed by "ts-xxx run".
func NewCommand ¶
func NewCommand() *Command
type ProactiveManager ¶ added in v1.1.0
type ProactiveManager struct {
// contains filtered or unexported fields
}
func NewProactiveManager ¶ added in v1.1.0
func NewProactiveManager() *ProactiveManager
func (*ProactiveManager) Close ¶ added in v1.1.0
func (pm *ProactiveManager) Close() error
func (*ProactiveManager) GetQueryList ¶ added in v1.1.0
func (pm *ProactiveManager) GetQueryList(cnt int) []uint64
func (*ProactiveManager) KillQuery ¶ added in v1.1.0
func (pm *ProactiveManager) KillQuery(id uint64)
func (*ProactiveManager) Open ¶ added in v1.1.0
func (pm *ProactiveManager) Open() error
func (*ProactiveManager) SetInspectInterval ¶ added in v1.1.0
func (pm *ProactiveManager) SetInspectInterval(interval time.Duration)
func (*ProactiveManager) WithLogger ¶ added in v1.1.0
func (pm *ProactiveManager) WithLogger(logger *logger.Logger)
type ServerInfo ¶ added in v1.1.0
type ServerInfo struct {
App config.App
Version string
Commit string
Branch string
BuildTime string
}
func (*ServerInfo) FullVersion ¶ added in v1.1.0
func (si *ServerInfo) FullVersion() string
func (*ServerInfo) StatVersion ¶ added in v1.3.0
func (si *ServerInfo) StatVersion() string
type ServiceGroup ¶ added in v1.5.0
type ServiceGroup struct {
// contains filtered or unexported fields
}
func (*ServiceGroup) Add ¶ added in v1.5.0
func (m *ServiceGroup) Add(s Service)
func (*ServiceGroup) MustClose ¶ added in v1.5.0
func (m *ServiceGroup) MustClose()
func (*ServiceGroup) Open ¶ added in v1.5.0
func (m *ServiceGroup) Open() error
Click to show internal directories.
Click to hide internal directories.