Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + type MockPathAdder struct + func NewMockPathAdder(ctrl *gomock.Controller) *MockPathAdder + func (m *MockPathAdder) AddAliases(endpoint string, aliases ...string) error + func (m *MockPathAdder) AddRoute(handler *common.HTTPHandler, lock *sync.RWMutex, base, endpoint string, ...) error + func (m *MockPathAdder) EXPECT() *MockPathAdderMockRecorder + type MockPathAdderMockRecorder struct + func (mr *MockPathAdderMockRecorder) AddAliases(endpoint interface{}, aliases ...interface{}) *gomock.Call + func (mr *MockPathAdderMockRecorder) AddRoute(handler, lock, base, endpoint, loggingWriter interface{}) *gomock.Call + type MockPathAdderWithReadLock struct + func NewMockPathAdderWithReadLock(ctrl *gomock.Controller) *MockPathAdderWithReadLock + func (m *MockPathAdderWithReadLock) AddAliasesWithReadLock(endpoint string, aliases ...string) error + func (m *MockPathAdderWithReadLock) AddRouteWithReadLock(handler *common.HTTPHandler, lock *sync.RWMutex, base, endpoint string, ...) error + func (m *MockPathAdderWithReadLock) EXPECT() *MockPathAdderWithReadLockMockRecorder + type MockPathAdderWithReadLockMockRecorder struct + func (mr *MockPathAdderWithReadLockMockRecorder) AddAliasesWithReadLock(endpoint interface{}, aliases ...interface{}) *gomock.Call + func (mr *MockPathAdderWithReadLockMockRecorder) AddRouteWithReadLock(handler, lock, base, endpoint, loggingWriter interface{}) *gomock.Call + type MockServer struct + func NewMockServer(ctrl *gomock.Controller) *MockServer + func (m *MockServer) AddAliases(endpoint string, aliases ...string) error + func (m *MockServer) AddAliasesWithReadLock(endpoint string, aliases ...string) error + func (m *MockServer) AddChainRoute(handler *common.HTTPHandler, ctx *snow.ConsensusContext, base, endpoint string) error + func (m *MockServer) AddRoute(handler *common.HTTPHandler, lock *sync.RWMutex, base, endpoint string) error + func (m *MockServer) AddRouteWithReadLock(handler *common.HTTPHandler, lock *sync.RWMutex, base, endpoint string) error + func (m *MockServer) Dispatch() error + func (m *MockServer) DispatchTLS(certBytes, keyBytes []byte) error + func (m *MockServer) EXPECT() *MockServerMockRecorder + func (m *MockServer) Initialize(log logging.Logger, factory logging.Factory, host string, port uint16, ...) + func (m *MockServer) RegisterChain(chainName string, engine common.Engine) + func (m *MockServer) Shutdown() error + type MockServerMockRecorder struct + func (mr *MockServerMockRecorder) AddAliases(endpoint interface{}, aliases ...interface{}) *gomock.Call + func (mr *MockServerMockRecorder) AddAliasesWithReadLock(endpoint interface{}, aliases ...interface{}) *gomock.Call + func (mr *MockServerMockRecorder) AddChainRoute(handler, ctx, base, endpoint interface{}) *gomock.Call + func (mr *MockServerMockRecorder) AddRoute(handler, lock, base, endpoint interface{}) *gomock.Call + func (mr *MockServerMockRecorder) AddRouteWithReadLock(handler, lock, base, endpoint interface{}) *gomock.Call + func (mr *MockServerMockRecorder) Dispatch() *gomock.Call + func (mr *MockServerMockRecorder) DispatchTLS(certBytes, keyBytes interface{}) *gomock.Call + func (mr *MockServerMockRecorder) Initialize(log, factory, host, port, allowedOrigins, shutdownTimeout, nodeID interface{}, ...) *gomock.Call + func (mr *MockServerMockRecorder) RegisterChain(chainName, engine interface{}) *gomock.Call + func (mr *MockServerMockRecorder) Shutdown() *gomock.Call + type PathAdder interface + AddAliases func(endpoint string, aliases ...string) error + AddRoute func(handler *common.HTTPHandler, lock *sync.RWMutex, base, endpoint string) error + func PathWriterFromWithReadLock(pather PathAdderWithReadLock) PathAdder + type PathAdderWithReadLock interface + AddAliasesWithReadLock func(endpoint string, aliases ...string) error + AddRouteWithReadLock func(handler *common.HTTPHandler, lock *sync.RWMutex, base, endpoint string) error + type Server interface + AddChainRoute func(handler *common.HTTPHandler, ctx *snow.ConsensusContext, base, endpoint string) error + Dispatch func() error + DispatchTLS func(certBytes, keyBytes []byte) error + Initialize func(log logging.Logger, factory logging.Factory, host string, port uint16, ...) + RegisterChain func(chainName string, engine common.Engine) + Shutdown func() error + func New() Server + type Wrapper interface + WrapHandler func(h http.Handler) http.Handler v1.0.0-alpha Nov 22, 2022