Documentation ¶
Index ¶
Constants ¶
View Source
const ( ENABLE_WRITE_TRUE = int32(1) ENABLE_WRITE_FALSE = int32(0) )
Variables ¶
View Source
var HealthCheckTimeout = 5 * time.Second
View Source
var (
HttpProxyNotExistsError = errors.New("HttpProxy not exists")
)
Functions ¶
func Start ¶
func Start(conf *config.CherylConfig)
Types ¶
type HttpServer ¶
type HttpServer struct { Mux *http.ServeMux Ctx *StateContext // contains filtered or unexported fields }
func (*HttpServer) SetWriteFlag ¶
func (h *HttpServer) SetWriteFlag(flag bool)
type R ¶
type State ¶
type State struct { ProxyMap *reverseproxy.ProxyMap RaftNode *raftNodeInfo Hs *HttpServer }
type StateContext ¶
type StateContext struct {
State *State
}
Click to show internal directories.
Click to hide internal directories.