Documentation ¶
Index ¶
- Variables
- func AppHeadInfoNotReadyError(ctx context.Context) *derr.ErrorResponse
- func AppPriceNotReadyError(ctx context.Context) *derr.ErrorResponse
- func AppTableRowsCannotFetchInFutureError(ctx context.Context, blockNum uint32) *derr.ErrorResponse
- func AppUnableToGetIrreversibleBlockIDError(ctx context.Context, identifier string) *derr.ErrorResponse
- func AppVoteTallyNotReadyError(ctx context.Context) *derr.ErrorResponse
- func AuthInvalidStreamingStartBlockError(ctx context.Context, actualBlockNum uint32, requestedStartBlock uint32, ...) *derr.ErrorResponse
- func AuthInvalidTierError(ctx context.Context, tier string, expectedTier string) *derr.ErrorResponse
- func AuthInvalidTokenError(ctx context.Context, cause error, token string) *derr.ErrorResponse
- func AuthTokenMissingError(ctx context.Context) *derr.ErrorResponse
- func CompressionMiddleware(next http.Handler) http.Handler
- func DBABINotFoundError(ctx context.Context, account string) *derr.ErrorResponse
- func DBAccountNotFoundError(ctx context.Context, account string) *derr.ErrorResponse
- func DBBlockNotFoundError(ctx context.Context, identifier string) *derr.ErrorResponse
- func DBForumProposalNotFoundError(ctx context.Context, proposalName string) *derr.ErrorResponse
- func DBTrxAppearanceTimeoutError(ctx context.Context, blockID string, trxID string) *derr.ErrorResponse
- func DBTrxNotFoundError(ctx context.Context, trxID string) *derr.ErrorResponse
- func DfuseErrorHandler(w http.ResponseWriter, ctx context.Context, err error)
- func EOSChainErrorHandler(w http.ResponseWriter, ctx context.Context, err error)
- func FowardErrorResponse(w http.ResponseWriter, r *http.Request, response *http.Response)
- func GetBinanceData() (d *wsmsg.PriceResp, err error)
- func LoggingMiddleware(next http.Handler) http.Handler
- func NewCORSMiddleware() mux.MiddlewareFunc
- func NewParameterizedTestContext(hexTraceID string, spanName string) context.Context
- func NewTestContext() context.Context
- func OpenCensusMiddleware(next http.Handler) http.Handler
- func PreTrackingMiddleware(next http.Handler) http.Handler
- func RESTTrackingMiddleware(next http.Handler) http.Handler
- func Retry(ctx context.Context, attempts int, sleep time.Duration, callback func() error) (err error)
- func TrackUserEvent(ctx context.Context, name string, keyvals ...interface{})
- func ValidateBlocksRequest(r *http.Request) url.Values
- func ValidateListRequest(r *http.Request) url.Values
- func WSAlreadyClosedError(ctx context.Context) *derr.ErrorResponse
- func WSBinaryMessageUnsupportedError(ctx context.Context) *derr.ErrorResponse
- func WSInvalidJSONMessageDataError(ctx context.Context, messageType string, err error) *derr.ErrorResponse
- func WSInvalidJSONMessageError(ctx context.Context, err error) *derr.ErrorResponse
- func WSMessageDataValidationError(ctx context.Context, err error) *derr.ErrorResponse
- func WSStreamAlreadyExistError(ctx context.Context, requestID string) *derr.ErrorResponse
- func WSStreamNotFoundError(ctx context.Context, requestID string) *derr.ErrorResponse
- func WSTooMuchStreamError(ctx context.Context, streamCount int, maxStreamCount int) *derr.ErrorResponse
- func WSUnableToUpgradeConnectionError(ctx context.Context, status int, cause error) *derr.ErrorResponse
- func WSUnavailableMessageError(ctx context.Context, messageType string) *derr.ErrorResponse
- func WSUnknownMessageError(ctx context.Context, messageType string) *derr.ErrorResponse
- func WriteError(w http.ResponseWriter, r *http.Request, err error)
- func WriteJSON(w http.ResponseWriter, r *http.Request, v interface{})
- func WriterStatus(w http.ResponseWriter) (int, error)
- type ABIChangeHandler
- type ABIGetter
- type ABIStack
- type APIAccountGetter
- type AccountGetter
- type AuthFeatureChecker
- type AuthFeatureMiddleware
- type AuthorizedRequest
- type CommonHub
- func (c *CommonHub) EmitAll(ctx context.Context, msg wsmsg.OutgoingMessager)
- func (c *CommonHub) Last() wsmsg.OutgoingMessager
- func (c *CommonHub) SetLast(msg wsmsg.OutgoingMessager)
- func (c *CommonHub) Subscribe(ctx context.Context, msg wsmsg.IncomingMessager, ws *WSConn)
- func (c *CommonHub) Unsubscribe(ctx context.Context, removeEmitter *bufferedEmitter)
- type DB
- type DefaultABIGetter
- type DefaultIrreversibleFinder
- type Emitter
- type HeadInfoHub
- type IrreversibleFinder
- type MockDB
- func (db *MockDB) GetAccount(ctx context.Context, name string) (out *pbcodec.AccountCreationRef, err error)
- func (db *MockDB) GetBlock(ctx context.Context, id string) (out *pbcodec.BlockWithRefs, err error)
- func (db *MockDB) GetBlockByNum(ctx context.Context, num uint32) (out []*pbcodec.BlockWithRefs, err error)
- func (db *MockDB) GetClosestIrreversibleIDAtBlockNum(ctx context.Context, num uint32) (out bstream.BlockRef, err error)
- func (db *MockDB) GetIrreversibleIDAtBlockID(ctx context.Context, ID string) (out bstream.BlockRef, err error)
- func (db *MockDB) GetLastWrittenBlockID(ctx context.Context) (string, error)
- func (db *MockDB) GetTransaction(ctx context.Context, id string) (out *pbcodec.TransactionLifecycle, err error)
- func (db *MockDB) GetTransactionWithExpectedBlockID(ctx context.Context, id string, _ string) (out *pbcodec.TransactionLifecycle, err error)
- func (db *MockDB) GetTransactions(ctx context.Context, ids []string) (out []*pbcodec.TransactionLifecycle, err error)
- func (db *MockDB) ListAccountNames(ctx context.Context) (out []string, err error)
- func (db *MockDB) ListBlocks(ctx context.Context, startBlockNum uint32, limit int) ([]*pbcodec.BlockWithRefs, error)
- func (db *MockDB) ListMostRecentTransactions(ctx context.Context, startKey string, limit int) (*mdl.TransactionList, error)
- func (db *MockDB) ListSiblingBlocks(ctx context.Context, blockNum uint32, spread uint32) ([]*pbcodec.BlockWithRefs, error)
- func (db *MockDB) ListTransactionsForBlockID(ctx context.Context, blockId string, startKey string, limit int) (*mdl.TransactionList, error)
- type MultiRouterClient
- type PriceHub
- type ProgressHandler
- type SearchEngine
- type SearchQuery
- type StatusAwareResponseWriter
- type TRXDB
- func (db *TRXDB) GetAccount(ctx context.Context, name string) (account *pbcodec.AccountCreationRef, err error)
- func (db *TRXDB) GetBlock(ctx context.Context, id string) (out *pbcodec.BlockWithRefs, err error)
- func (db *TRXDB) GetBlockByNum(ctx context.Context, num uint32) (out []*pbcodec.BlockWithRefs, err error)
- func (db *TRXDB) GetTransaction(ctx context.Context, id string) (out *pbcodec.TransactionLifecycle, err error)
- func (db *TRXDB) GetTransactionWithExpectedBlockID(ctx context.Context, id string, expectedBlockID string) (out *pbcodec.TransactionLifecycle, err error)
- func (db *TRXDB) GetTransactions(ctx context.Context, ids []string) (out []*pbcodec.TransactionLifecycle, err error)
- func (db *TRXDB) ListMostRecentTransactions(ctx context.Context, startKey string, limit int) (*mdl.TransactionList, error)
- func (db *TRXDB) ListTransactionsForBlockID(ctx context.Context, blockID string, startKey string, limit int) (*mdl.TransactionList, error)
- type TestABIGetter
- type TestAccountGetter
- type TestEmitter
- func (e *TestEmitter) Emit(ctx context.Context, msg wsmsg.OutgoingMessager)
- func (e *TestEmitter) EmitError(ctx context.Context, reqID string, err error)
- func (e *TestEmitter) EmitErrorReply(ctx context.Context, msg wsmsg.IncomingMessager, err error)
- func (e *TestEmitter) EmitReply(ctx context.Context, originatingMsg wsmsg.IncomingMessager, ...)
- type TestIrreversibleFinder
- type VoteTallyHub
- type WSConn
- func (ws *WSConn) AuthorizeRequest(ctx context.Context, msg wsmsg.IncomingMessager) (*AuthorizedRequest, bool)
- func (ws *WSConn) Emit(ctx context.Context, msg wsmsg.OutgoingMessager)
- func (ws *WSConn) EmitError(ctx context.Context, reqID string, err error)
- func (ws *WSConn) EmitErrorReply(ctx context.Context, msg wsmsg.IncomingMessager, err error)
- func (ws *WSConn) EmitReply(ctx context.Context, originatingMsg wsmsg.IncomingMessager, ...)
- func (ws *WSConn) RegisterListener(ctx context.Context, reqID string, canceler func() error) error
- func (ws *WSConn) ShutdownAllListeners()
- func (ws *WSConn) ShutdownListener(ctx context.Context, reqID string) error
- type WebsocketHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DisabledWsMessage map[string]interface{}
View Source
var NowFunc func() time.Time
Functions ¶
func AppHeadInfoNotReadyError ¶
func AppHeadInfoNotReadyError(ctx context.Context) *derr.ErrorResponse
func AppPriceNotReadyError ¶
func AppPriceNotReadyError(ctx context.Context) *derr.ErrorResponse
func AppTableRowsCannotFetchInFutureError ¶
func AppTableRowsCannotFetchInFutureError(ctx context.Context, blockNum uint32) *derr.ErrorResponse
func AppUnableToGetIrreversibleBlockIDError ¶
func AppUnableToGetIrreversibleBlockIDError(ctx context.Context, identifier string) *derr.ErrorResponse
func AppVoteTallyNotReadyError ¶
func AppVoteTallyNotReadyError(ctx context.Context) *derr.ErrorResponse
func AuthInvalidTierError ¶
func AuthInvalidTokenError ¶
func AuthTokenMissingError ¶
func AuthTokenMissingError(ctx context.Context) *derr.ErrorResponse
func DBABINotFoundError ¶
func DBABINotFoundError(ctx context.Context, account string) *derr.ErrorResponse
func DBAccountNotFoundError ¶
func DBAccountNotFoundError(ctx context.Context, account string) *derr.ErrorResponse
func DBBlockNotFoundError ¶
func DBBlockNotFoundError(ctx context.Context, identifier string) *derr.ErrorResponse
func DBForumProposalNotFoundError ¶
func DBForumProposalNotFoundError(ctx context.Context, proposalName string) *derr.ErrorResponse
func DBTrxNotFoundError ¶
func DBTrxNotFoundError(ctx context.Context, trxID string) *derr.ErrorResponse
func DfuseErrorHandler ¶
func DfuseErrorHandler(w http.ResponseWriter, ctx context.Context, err error)
func EOSChainErrorHandler ¶
func EOSChainErrorHandler(w http.ResponseWriter, ctx context.Context, err error)
func FowardErrorResponse ¶
func GetBinanceData ¶
func NewCORSMiddleware ¶
func NewCORSMiddleware() mux.MiddlewareFunc
func NewTestContext ¶
func TrackUserEvent ¶
TrackUserEvent tracks a event `name` with a set of key/value pairs for a particular user.
**Important** If your read this from a call site **DO NOT** modify call site arguments unless you correctly ensures BigQuery analytics view are ready to handle the changes. If you are not sure of what you are doing, ask someone from the devops team.
func WSAlreadyClosedError ¶
func WSAlreadyClosedError(ctx context.Context) *derr.ErrorResponse
func WSBinaryMessageUnsupportedError ¶
func WSBinaryMessageUnsupportedError(ctx context.Context) *derr.ErrorResponse
func WSInvalidJSONMessageError ¶
func WSInvalidJSONMessageError(ctx context.Context, err error) *derr.ErrorResponse
func WSMessageDataValidationError ¶
func WSMessageDataValidationError(ctx context.Context, err error) *derr.ErrorResponse
func WSStreamAlreadyExistError ¶
func WSStreamAlreadyExistError(ctx context.Context, requestID string) *derr.ErrorResponse
func WSStreamNotFoundError ¶
func WSStreamNotFoundError(ctx context.Context, requestID string) *derr.ErrorResponse
func WSTooMuchStreamError ¶
func WSUnavailableMessageError ¶
func WSUnavailableMessageError(ctx context.Context, messageType string) *derr.ErrorResponse
func WSUnknownMessageError ¶
func WSUnknownMessageError(ctx context.Context, messageType string) *derr.ErrorResponse
func WriteError ¶
func WriteError(w http.ResponseWriter, r *http.Request, err error)
func WriterStatus ¶
func WriterStatus(w http.ResponseWriter) (int, error)
Types ¶
type ABIChangeHandler ¶
type ABIChangeHandler struct {
// contains filtered or unexported fields
}
func NewABIChangeHandler ¶
func NewABIChangeHandler(abiGetter ABIGetter, blockNum uint32, code zsw.AccountName, next bstream.Handler, ctx context.Context) (*ABIChangeHandler, error)
func (*ABIChangeHandler) CurrentABI ¶
func (h *ABIChangeHandler) CurrentABI() *zsw.ABI
func (*ABIChangeHandler) ProcessBlock ¶
func (h *ABIChangeHandler) ProcessBlock(block *bstream.Block, obj interface{}) error
type APIAccountGetter ¶
type APIAccountGetter struct {
// contains filtered or unexported fields
}
func NewApiAccountGetter ¶
func NewApiAccountGetter(api *zsw.API, coreSymbol zsw.Symbol) *APIAccountGetter
func (*APIAccountGetter) GetAccount ¶
func (g *APIAccountGetter) GetAccount(ctx context.Context, name string) (out *zsw.AccountResp, err error)
type AccountGetter ¶
type AccountGetter interface {
GetAccount(ctx context.Context, name string) (out *zsw.AccountResp, err error)
}
var AccountGetterInstance AccountGetter
type AuthFeatureChecker ¶
type AuthFeatureChecker = func(ctx context.Context, credentials authenticator.Credentials) error
type AuthFeatureMiddleware ¶
type AuthFeatureMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthFeatureMiddleware ¶
func NewAuthFeatureMiddleware(checker AuthFeatureChecker) *AuthFeatureMiddleware
type AuthorizedRequest ¶
type CommonHub ¶
type CommonHub struct {
// contains filtered or unexported fields
}
func (*CommonHub) EmitAll ¶
func (c *CommonHub) EmitAll(ctx context.Context, msg wsmsg.OutgoingMessager)
func (*CommonHub) Last ¶
func (c *CommonHub) Last() wsmsg.OutgoingMessager
func (*CommonHub) SetLast ¶
func (c *CommonHub) SetLast(msg wsmsg.OutgoingMessager)
func (*CommonHub) Unsubscribe ¶
type DB ¶
type DB interface { trxdb.DBReader GetTransactionWithExpectedBlockID(ctx context.Context, id string, expectedBlockID string) (*pbcodec.TransactionLifecycle, error) GetTransaction(ctx context.Context, id string) (*pbcodec.TransactionLifecycle, error) GetTransactions(ctx context.Context, ids []string) ([]*pbcodec.TransactionLifecycle, error) ListTransactionsForBlockID(ctx context.Context, blockId string, startKey string, limit int) (*mdl.TransactionList, error) ListMostRecentTransactions(ctx context.Context, startKey string, limit int) (*mdl.TransactionList, error) }
type DefaultABIGetter ¶
type DefaultABIGetter struct {
// contains filtered or unexported fields
}
func NewDefaultABIGetter ¶
func NewDefaultABIGetter(client pbstatedb.StateClient) *DefaultABIGetter
type DefaultIrreversibleFinder ¶
type DefaultIrreversibleFinder struct {
// contains filtered or unexported fields
}
func NewDBReaderBaseIrrFinder ¶
func NewDBReaderBaseIrrFinder(db DB) *DefaultIrreversibleFinder
func (*DefaultIrreversibleFinder) IrreversibleIDAtBlockID ¶
func (*DefaultIrreversibleFinder) IrreversibleIDAtBlockNum ¶
type Emitter ¶
type Emitter interface { Emit(ctx context.Context, msg wsmsg.OutgoingMessager) EmitReply(ctx context.Context, originatingMsg wsmsg.IncomingMessager, msg wsmsg.OutgoingMessager) EmitErrorReply(ctx context.Context, msg wsmsg.IncomingMessager, err error) EmitError(ctx context.Context, reqID string, err error) }
type HeadInfoHub ¶
type HeadInfoHub struct { CommonHub // contains filtered or unexported fields }
func NewHeadInfoHub ¶
func NewHeadInfoHub(initialStartBlock string, initialLIB string, subscriptionHub *hub.SubscriptionHub) *HeadInfoHub
func (*HeadInfoHub) Launch ¶
func (h *HeadInfoHub) Launch(ctx context.Context)
func (*HeadInfoHub) LibID ¶
func (h *HeadInfoHub) LibID() string
type IrreversibleFinder ¶
type MockDB ¶
type MockDB struct { trxdb.TimelineExplorer trxdb.TransactionsReader // contains filtered or unexported fields }
func (*MockDB) GetAccount ¶
func (*MockDB) GetBlockByNum ¶
func (*MockDB) GetClosestIrreversibleIDAtBlockNum ¶
func (*MockDB) GetIrreversibleIDAtBlockID ¶
func (*MockDB) GetLastWrittenBlockID ¶
func (*MockDB) GetTransaction ¶
func (*MockDB) GetTransactionWithExpectedBlockID ¶
func (*MockDB) GetTransactions ¶
func (*MockDB) ListAccountNames ¶
func (*MockDB) ListBlocks ¶
func (*MockDB) ListMostRecentTransactions ¶
func (*MockDB) ListSiblingBlocks ¶
type MultiRouterClient ¶
func NewMultiRouterClient ¶
func NewMultiRouterClient(v1Client pbsearch.RouterClient, v2Client pbsearch.RouterClient) *MultiRouterClient
func (*MultiRouterClient) StreamMatches ¶
func (m *MultiRouterClient) StreamMatches(ctx context.Context, in *pbsearch.RouterRequest, opts ...grpc.CallOption) (pbsearch.Router_StreamMatchesClient, error)
type ProgressHandler ¶
type ProgressHandler struct {
// contains filtered or unexported fields
}
func NewProgressHandler ¶
func NewProgressHandler(next bstream.Handler, emiter Emitter, message wsmsg.IncomingMessager, context context.Context) *ProgressHandler
func (*ProgressHandler) ProcessBlock ¶
func (h *ProgressHandler) ProcessBlock(blk *bstream.Block, obj interface{}) error
func (*ProgressHandler) SetStepFilter ¶
func (h *ProgressHandler) SetStepFilter(s forkable.StepType)
type SearchEngine ¶
type SearchEngine struct {
// contains filtered or unexported fields
}
func NewSearchEngine ¶
func NewSearchEngine(db DB, searchClient pbsearch.RouterClient) *SearchEngine
func (*SearchEngine) DoRequest ¶
func (s *SearchEngine) DoRequest(ctx context.Context, q *pbsearch.RouterRequest) (matches []*pbsearch.SearchMatch, rangeCompleted bool, err error)
func (*SearchEngine) ServeHTTP ¶
func (s *SearchEngine) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SearchQuery ¶
type SearchQuery struct { Query string `json:"query"` StartBlock uint32 `json:"start_block"` BlockCount uint32 `json:"block_count"` SortDescending bool `json:"sort_desc"` Limit uint64 `json:"limit"` Cursor string `json:"cursor"` WithReversible bool `json:"with_reversible"` Format string `json:"format"` }
type StatusAwareResponseWriter ¶
type StatusAwareResponseWriter struct { http.ResponseWriter Status int }
func TurnIntoStatusAwareResponseWriter ¶
func TurnIntoStatusAwareResponseWriter(w http.ResponseWriter) *StatusAwareResponseWriter
func (*StatusAwareResponseWriter) Hijack ¶
func (w *StatusAwareResponseWriter) Hijack() (rwc net.Conn, buf *bufio.ReadWriter, err error)
func (*StatusAwareResponseWriter) Write ¶
func (w *StatusAwareResponseWriter) Write(b []byte) (int, error)
func (*StatusAwareResponseWriter) WriteHeader ¶
func (w *StatusAwareResponseWriter) WriteHeader(status int)
type TRXDB ¶
func (*TRXDB) GetAccount ¶
func (*TRXDB) GetBlockByNum ¶
func (*TRXDB) GetTransaction ¶
func (*TRXDB) GetTransactionWithExpectedBlockID ¶
func (*TRXDB) GetTransactions ¶
func (*TRXDB) ListMostRecentTransactions ¶
type TestABIGetter ¶
type TestABIGetter struct {
// contains filtered or unexported fields
}
func NewTestABIGetter ¶
func NewTestABIGetter() *TestABIGetter
func (*TestABIGetter) GetABI ¶
func (g *TestABIGetter) GetABI(ctx context.Context, blockNum uint32, account zsw.AccountName) (*zsw.ABI, error)
func (*TestABIGetter) SetABIForAccount ¶
func (g *TestABIGetter) SetABIForAccount(abiString string, account zsw.AccountName)
type TestAccountGetter ¶
type TestAccountGetter struct {
// contains filtered or unexported fields
}
func NewTestAccountGetter ¶
func NewTestAccountGetter() *TestAccountGetter
func (*TestAccountGetter) GetAccount ¶
func (g *TestAccountGetter) GetAccount(ctx context.Context, name string) (out *zsw.AccountResp, err error)
func (*TestAccountGetter) SetAccount ¶
func (g *TestAccountGetter) SetAccount(jsonData string)
type TestEmitter ¶
type TestEmitter struct {
// contains filtered or unexported fields
}
func NewTestEmitter ¶
func NewTestEmitter(ctx context.Context, callBack func(wsmsg.OutgoingMessager)) *TestEmitter
func (*TestEmitter) Emit ¶
func (e *TestEmitter) Emit(ctx context.Context, msg wsmsg.OutgoingMessager)
func (*TestEmitter) EmitError ¶
func (e *TestEmitter) EmitError(ctx context.Context, reqID string, err error)
func (*TestEmitter) EmitErrorReply ¶
func (e *TestEmitter) EmitErrorReply(ctx context.Context, msg wsmsg.IncomingMessager, err error)
func (*TestEmitter) EmitReply ¶
func (e *TestEmitter) EmitReply(ctx context.Context, originatingMsg wsmsg.IncomingMessager, msg wsmsg.OutgoingMessager)
type TestIrreversibleFinder ¶
type TestIrreversibleFinder struct {
// contains filtered or unexported fields
}
func NewTestIrreversibleFinder ¶
func NewTestIrreversibleFinder(irrID string, err error) *TestIrreversibleFinder
func (*TestIrreversibleFinder) IrreversibleIDAtBlockID ¶
func (*TestIrreversibleFinder) IrreversibleIDAtBlockNum ¶
type VoteTallyHub ¶
type VoteTallyHub struct { CommonHub // contains filtered or unexported fields }
func NewVoteTallyHub ¶
func NewVoteTallyHub(stateHelper statedb.StateHelper) *VoteTallyHub
func (*VoteTallyHub) FetchVoteTally ¶
func (h *VoteTallyHub) FetchVoteTally() (*wsmsg.VoteTally, error)
func (*VoteTallyHub) Launch ¶
func (h *VoteTallyHub) Launch(ctx context.Context)
type WSConn ¶
type WSConn struct { *shutter.Shutter *WebsocketHandler Context context.Context // contains filtered or unexported fields }
WSConn represents a single web socket connection.
func NewWSConn ¶
func NewWSConn(wshand *WebsocketHandler, conn *websocket.Conn, creds authenticator.Credentials, filesourceBlockRateLimit time.Duration, ctx context.Context) *WSConn
func (*WSConn) AuthorizeRequest ¶
func (ws *WSConn) AuthorizeRequest(ctx context.Context, msg wsmsg.IncomingMessager) (*AuthorizedRequest, bool)
func (*WSConn) EmitErrorReply ¶
func (*WSConn) EmitReply ¶
func (ws *WSConn) EmitReply(ctx context.Context, originatingMsg wsmsg.IncomingMessager, msg wsmsg.OutgoingMessager)
func (*WSConn) RegisterListener ¶
func (*WSConn) ShutdownAllListeners ¶
func (ws *WSConn) ShutdownAllListeners()
type WebsocketHandler ¶
func NewWebsocketHandler ¶
func NewWebsocketHandler( abiGetter ABIGetter, accountGetter AccountGetter, db DB, subscriptionHub *hub.SubscriptionHub, stateClient pbstatedb.StateClient, voteTallyHub *VoteTallyHub, headInfoHub *HeadInfoHub, priceHub *PriceHub, irrFinder IrreversibleFinder, filesourceBlockRateLimit time.Duration, maxStreamCount int, ) *WebsocketHandler
Source Files ¶
- abigetter.go
- abihandler.go
- account.go
- action.go
- analytics.go
- auth.go
- commonhub.go
- db.go
- emit.go
- errors.go
- headinfo.go
- init.go
- irrfinder.go
- logging.go
- middleware.go
- multi_router_client.go
- price.go
- searchengine.go
- tablerows.go
- testing.go
- transactions.go
- utils.go
- validators.go
- votetally.go
- websocket.go
- withprogress.go
- writer.go
- wsconn.go
Click to show internal directories.
Click to hide internal directories.