xs

package
v0.0.0-...-276be26 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 24 Imported by: 1

README

xs

XS 是 RESTful API 基本框架,被用于配合 cli-tpl 的 server start/stop 等命令行指令使用。

XS 提供一个 common/xs/EchoServer 实现,这是一个 common/cli-tpl/CoolServer 以及 common/cli-tpl/XsServer 的接口实现。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deregister

func Deregister() (err error)

func New

func New(serverImpl vxconf.CoolServer) vxconf.XsServer

func NewEchoLogger

func NewEchoLogger() echo.Logger

func SetRegistrarChangesHandler

func SetRegistrarChangesHandler(handler store.WatchFunc)

func SetRegistrarOkCallback

func SetRegistrarOkCallback(okCallback RegistrarCallback)

Types

type CustomLogging

type CustomLogging struct {
	// contains filtered or unexported fields
}

func (*CustomLogging) Debug

func (s *CustomLogging) Debug(i ...interface{})

func (*CustomLogging) Debugf

func (s *CustomLogging) Debugf(format string, args ...interface{})

func (*CustomLogging) Debugj

func (s *CustomLogging) Debugj(j echolog.JSON)

func (*CustomLogging) Error

func (s *CustomLogging) Error(i ...interface{})

func (*CustomLogging) Errorf

func (s *CustomLogging) Errorf(format string, args ...interface{})

func (*CustomLogging) Errorj

func (s *CustomLogging) Errorj(j echolog.JSON)

func (*CustomLogging) Fatal

func (s *CustomLogging) Fatal(i ...interface{})

func (*CustomLogging) Fatalf

func (s *CustomLogging) Fatalf(format string, args ...interface{})

func (*CustomLogging) Fatalj

func (s *CustomLogging) Fatalj(j echolog.JSON)

func (*CustomLogging) Info

func (s *CustomLogging) Info(i ...interface{})

func (*CustomLogging) Infof

func (s *CustomLogging) Infof(format string, args ...interface{})

func (*CustomLogging) Infoj

func (s *CustomLogging) Infoj(j echolog.JSON)

func (*CustomLogging) Level

func (s *CustomLogging) Level() echolog.Lvl

func (*CustomLogging) Output

func (s *CustomLogging) Output() io.Writer

func (*CustomLogging) Panic

func (s *CustomLogging) Panic(i ...interface{})

func (*CustomLogging) Panicf

func (s *CustomLogging) Panicf(format string, args ...interface{})

func (*CustomLogging) Panicj

func (s *CustomLogging) Panicj(j echolog.JSON)

func (*CustomLogging) Prefix

func (s *CustomLogging) Prefix() string

func (*CustomLogging) Print

func (s *CustomLogging) Print(i ...interface{})

func (*CustomLogging) Printf

func (s *CustomLogging) Printf(format string, args ...interface{})

func (*CustomLogging) Printj

func (s *CustomLogging) Printj(j echolog.JSON)

func (*CustomLogging) SetHeader

func (s *CustomLogging) SetHeader(h string)

func (*CustomLogging) SetLevel

func (s *CustomLogging) SetLevel(v echolog.Lvl)

func (*CustomLogging) SetOutput

func (s *CustomLogging) SetOutput(w io.Writer)

func (*CustomLogging) SetPrefix

func (s *CustomLogging) SetPrefix(p string)

func (*CustomLogging) Warn

func (s *CustomLogging) Warn(i ...interface{})

func (*CustomLogging) Warnf

func (s *CustomLogging) Warnf(format string, args ...interface{})

func (*CustomLogging) Warnj

func (s *CustomLogging) Warnj(j echolog.JSON)

type RegistrarCallback

type RegistrarCallback func(r *gwk.Registrar, serviceName string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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