Versions in this module Expand all Collapse all v1 v1.1.3 Feb 25, 2019 Changes in this version type Config + UseWANConfig bool v1.1.2 Feb 21, 2019 v1.1.1 Nov 21, 2018 v1.1.0 Nov 21, 2018 Changes in this version + const DYNOMITE_YML_TMPL v1.0.0 Nov 20, 2018 Changes in this version + const AppName + const DEFAULT_FLORIDA_API_IP + const DEFAULT_FLORIDA_API_PORT + const DEFAULT_FLORIDA_API_REQUEST + const DEFAULT_HTTP_READ_TIMEOUT + const DEFAULT_HTTP_WRITE_TIMEOUT + const DEFAULT_MEMBERLIST_BIND_IP + const DEFAULT_MEMBERLIST_BIND_PORT + const DEFAULT_MEMBERLIST_JOIN_ADDR + const DEFAULT_MEMBERLIST_LEAVE_TIMEOUT + const TAB + const UA + const Version + func NewMemberlistConfig(ctx context.Context) *memberlist.Config + func WrapAccessLog(next http.Handler, logger HttpLogger) http.Handler + type Config struct + DebugMode bool + FloridaBindIP string + FloridaBindPort int + FloridaEndpoint string + HttpReadTimeout time.Duration + HttpWriteTimeout time.Duration + MemberlistBindIp string + MemberlistBindPort int + MemberlistJoinAddress string + MemberlistLeaveTimeout time.Duration + MemberlistNodeName string + Procs int + VerboseMode bool + type DefDelegate struct + func NewMemberlistDelegate(ctx context.Context) *DefDelegate + func (d *DefDelegate) GetBroadcasts(overhead, limit int) [][]byte + func (d *DefDelegate) Init() error + func (d *DefDelegate) LocalState(join bool) []byte + func (d *DefDelegate) MergeRemoteState(buf []byte, join bool) + func (d *DefDelegate) NodeMeta(limit int) []byte + func (d *DefDelegate) NotifyMsg(msg []byte) + type DefLogger struct + DebugMode bool + func (l *DefLogger) Write(host string, method string, uri string, status int, ua string) + type Dyn_o_mite struct + Datacenter string + Listen string + Rack string + Tokens string + type DynomiteYaml struct + DynomiteConf Dyn_o_mite + type HttpController struct + func NewHttpController(config Config, member *Member) *HttpController + func (c *HttpController) CheckStatus(res http.ResponseWriter, req *http.Request) + func (c *HttpController) GetSeeds(res http.ResponseWriter, req *http.Request) + func (c *HttpController) HttpHandler() http.Handler + func (c *HttpController) Version(res http.ResponseWriter, req *http.Request) + type HttpLogger interface + Write func(host string, method string, uri string, status int, ua string) + func NewHttpLogger(c Config) HttpLogger + type HttpServer struct + Controller *HttpController + Server *http.Server + func NewHttpServer(ctx context.Context, m *Member) *HttpServer + func (s *HttpServer) Start(sctx context.Context) error + func (s *HttpServer) Stop(sctx context.Context) error + type Member struct + func NewMember(ctx context.Context) *Member + func (m *Member) Init() error + func (m *Member) IsJoined() bool + func (m *Member) Join() error + func (m *Member) Leave(timeout time.Duration) error + func (m *Member) SeedList() []string + type MemberLogger struct + func NewMemberLogger(config Config) *MemberLogger + func (ml *MemberLogger) NewLogger() *log.Logger + type SeedAdvertise struct + Address string + Datacenter string + Rack string + Token string + type WrapWriter struct + LastStatus int + Writer http.ResponseWriter + func (w *WrapWriter) Header() http.Header + func (w *WrapWriter) Write(b []byte) (int, error) + func (w *WrapWriter) WriteHeader(status int)