Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2021 Changes in this version + func HandleRaw(action rawAction) http.HandlerFunc + func NewHistoryMiddleware(ledgerState *ledger.State, staleThreshold int32, session *db.Session) func(http.Handler) http.Handler + func WrapRaw(next http.Handler, action rawAction) http.Handler + type ObjectActionHandler struct + Action objectAction + func (handler ObjectActionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Router struct + Internal *chi.Mux + func NewRouter(config *RouterConfig, serverMetrics *ServerMetrics, ledgerState *ledger.State) (*Router, error) + type RouterConfig struct + ConnectionTimeout time.Duration + CoreGetter actions.CoreSettingsGetter + DBSession *db.Session + FriendbotURL *url.URL + HorizonVersion string + MaxPathLength uint + NetworkPassphrase string + PathFinder paths.Finder + PrometheusRegistry *prometheus.Registry + RateQuota *throttled.RateQuota + SSEUpdateFrequency time.Duration + StaleThreshold uint + TxSubmitter *txsub.System + type Server struct + Metrics *ServerMetrics + Router *Router + func NewServer(serverConfig ServerConfig, routerConfig RouterConfig, ...) (*Server, error) + func (s *Server) Serve() error + func (s *Server) Shutdown(ctx context.Context) error + type ServerConfig struct + AdminPort uint16 + Port uint16 + TLSConfig *TLSConfig + type ServerMetrics struct + RequestDurationSummary *prometheus.SummaryVec + type StateMiddleware struct + HorizonSession *db.Session + NoStateVerification bool + func (m *StateMiddleware) Wrap(h http.Handler) http.Handler + func (m *StateMiddleware) WrapFunc(h http.HandlerFunc) http.HandlerFunc + type TLSConfig struct + CertPath string + KeyPath string + type VaryByRemoteIP struct + func (v VaryByRemoteIP) Key(r *http.Request) string