Documentation ¶
Index ¶
- Constants
- Variables
- func NewAdmin(serverconf conf.Config, flags *flag.FlagSet, cnf srv.ConfigLoader) (ipPort *srv.IpPort, server srv.Server, logger srv.LowLevelLogger, err error)
- func Nodes(flags *flag.FlagSet, cnf srv.ConfigLoader)
- func ObjectInfo(flags *flag.FlagSet, cnf srv.ConfigLoader)
- func PrintDevs(devs []*ring.RingBuilderDevice)
- func ReconClient(flags *flag.FlagSet, cnf srv.ConfigLoader) bool
- func RingBuildCmd(flags *flag.FlagSet)
- type AutoAdmin
- func (server *AutoAdmin) Background(flags *flag.FlagSet) chan struct{}
- func (server *AutoAdmin) Finalize()
- func (server *AutoAdmin) GetHandler(config conf.Config, metricsPrefix string) http.Handler
- func (server *AutoAdmin) HealthcheckHandler(writer http.ResponseWriter, request *http.Request)
- func (server *AutoAdmin) LogRequest(next http.Handler) http.Handler
- func (a *AutoAdmin) Run()
- func (a *AutoAdmin) RunForever()
- func (server *AutoAdmin) Type() string
Constants ¶
View Source
const AdminAccount = ".admin"
Variables ¶
View Source
var DB_NAME = "andrewd.db"
Functions ¶
func ObjectInfo ¶
func ObjectInfo(flags *flag.FlagSet, cnf srv.ConfigLoader)
func PrintDevs ¶
func PrintDevs(devs []*ring.RingBuilderDevice)
func ReconClient ¶
func ReconClient(flags *flag.FlagSet, cnf srv.ConfigLoader) bool
func RingBuildCmd ¶
Types ¶
type AutoAdmin ¶
type AutoAdmin struct {
// contains filtered or unexported fields
}
func (*AutoAdmin) Background ¶
func (*AutoAdmin) GetHandler ¶
func (*AutoAdmin) HealthcheckHandler ¶
func (server *AutoAdmin) HealthcheckHandler(writer http.ResponseWriter, request *http.Request)
func (*AutoAdmin) RunForever ¶
func (a *AutoAdmin) RunForever()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.