Versions in this module Expand all Collapse all v0 v0.1.2 Nov 14, 2024 v0.1.1 Jan 25, 2024 Changes in this version + func HandleRaw(action rawAction) http.HandlerFunc + func NewHistoryMiddleware(ledgerState *ledger.State, staleThreshold int32, session db.SessionInterface) 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 ReplicaSyncCheckMiddleware struct + PrimaryHistoryQ *history.Q + ReplicaHistoryQ *history.Q + ServerMetrics *ServerMetrics + func (m *ReplicaSyncCheckMiddleware) Wrap(h http.Handler) http.Handler + func (m *ReplicaSyncCheckMiddleware) WrapFunc(h http.HandlerFunc) http.HandlerFunc + type Router struct + Internal *chi.Mux + func NewRouter(config *RouterConfig, serverMetrics *ServerMetrics, ledgerState *ledger.State) (*Router, error) + type RouterConfig struct + AuroraVersion string + BehindAWSLoadBalancer bool + BehindCloudflare bool + ConnectionTimeout time.Duration + CoreGetter actions.CoreStateGetter + DBSession db.SessionInterface + FriendbotURL *url.URL + HealthCheck http.Handler + MaxAssetsPerPathRequest int + MaxPathLength uint + NetworkPassphrase string + PathFinder paths.Finder + PrimaryDBSession db.SessionInterface + 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) RegisterMetrics(registry *prometheus.Registry) + 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 + ReplicaLagErrorsCounter prometheus.Counter + RequestDurationSummary *prometheus.SummaryVec + type StateMiddleware struct + AuroraSession db.SessionInterface + 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