Versions in this module Expand all Collapse all v1 v1.11.10 Jul 13, 2024 Changes in this version + type HTTPConfig struct + IdleTimeout time.Duration + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + WriteTimeout time.Duration + type MockServer struct + func NewMockServer(ctrl *gomock.Controller) *MockServer + func (m *MockServer) AddAliases(arg0 string, arg1 ...string) error + func (m *MockServer) AddAliasesWithReadLock(arg0 string, arg1 ...string) error + func (m *MockServer) AddRoute(arg0 http.Handler, arg1, arg2 string) error + func (m *MockServer) AddRouteWithReadLock(arg0 http.Handler, arg1, arg2 string) error + func (m *MockServer) Dispatch() error + func (m *MockServer) EXPECT() *MockServerMockRecorder + func (m *MockServer) RegisterChain(arg0 string, arg1 *snow.ConsensusContext, arg2 common.VM) + func (m *MockServer) Shutdown() error + type MockServerMockRecorder struct + func (mr *MockServerMockRecorder) AddAliases(arg0 any, arg1 ...any) *gomock.Call + func (mr *MockServerMockRecorder) AddAliasesWithReadLock(arg0 any, arg1 ...any) *gomock.Call + func (mr *MockServerMockRecorder) AddRoute(arg0, arg1, arg2 any) *gomock.Call + func (mr *MockServerMockRecorder) AddRouteWithReadLock(arg0, arg1, arg2 any) *gomock.Call + func (mr *MockServerMockRecorder) Dispatch() *gomock.Call + func (mr *MockServerMockRecorder) RegisterChain(arg0, arg1, arg2 any) *gomock.Call + func (mr *MockServerMockRecorder) Shutdown() *gomock.Call + type PathAdder interface + AddAliases func(endpoint string, aliases ...string) error + AddRoute func(handler http.Handler, base, endpoint string) error + func PathWriterFromWithReadLock(pather PathAdderWithReadLock) PathAdder + type PathAdderWithReadLock interface + AddAliasesWithReadLock func(endpoint string, aliases ...string) error + AddRouteWithReadLock func(handler http.Handler, base, endpoint string) error + type Server interface + Dispatch func() error + RegisterChain func(chainName string, ctx *snow.ConsensusContext, vm common.VM) + Shutdown func() error + func New(log logging.Logger, factory logging.Factory, listener net.Listener, ...) (Server, error) + type Wrapper interface + WrapHandler func(h http.Handler) http.Handler