Documentation ¶
Index ¶
Constants ¶
View Source
const ( SERVER_IPC_PATH = "SERVER_IPC_PATH" SERVER_HTTP_PATH = "SERVER_HTTP_PATH" SERVER_MAX_IDLE_CONNECTIONS = "SERVER_MAX_IDLE_CONNECTIONS" SERVER_MAX_OPEN_CONNECTIONS = "SERVER_MAX_OPEN_CONNECTIONS" SERVER_MAX_CONN_LIFETIME = "SERVER_MAX_CONN_LIFETIME" WATCHED_ADDRESS_GAP_FILLER_INTERVAL = "WATCHED_ADDRESS_GAP_FILLER_INTERVAL" )
Env variables
View Source
const ( ETH_WS_PATH = "ETH_WS_PATH" ETH_HTTP_PATH = "ETH_HTTP_PATH" DATABASE_NAME = "DATABASE_NAME" DATABASE_HOSTNAME = "DATABASE_HOSTNAME" DATABASE_PORT = "DATABASE_PORT" DATABASE_USER = "DATABASE_USER" DATABASE_PASSWORD = "DATABASE_PASSWORD" DATABASE_MAX_IDLE_CONNECTIONS = "DATABASE_MAX_IDLE_CONNECTIONS" DATABASE_MAX_OPEN_CONNECTIONS = "DATABASE_MAX_OPEN_CONNECTIONS" DATABASE_MAX_CONN_LIFETIME = "DATABASE_MAX_CONN_LIFETIME" )
Env variables
View Source
const APIName = "vdb"
APIName is the namespace used for the state diffing service API
View Source
const APIVersion = "0.0.1"
APIVersion is the version of the state diffing service API
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB *sqlx.DB DBConfig postgres.Config HTTPEnabled bool HTTPEndpoint string IPCEnabled bool IPCEndpoint string Client *rpc.Client WatchedAddressGapFillInterval int }
Config struct
type PublicServerAPI ¶
type PublicServerAPI struct {
// contains filtered or unexported fields
}
PublicServerAPI is the public api for the watcher
func NewPublicServerAPI ¶
func NewPublicServerAPI(client *rpc.Client) *PublicServerAPI
NewPublicServerAPI creates a new PublicServerAPI with the provided underlying Server process
func (*PublicServerAPI) WatchAddress ¶
func (api *PublicServerAPI) WatchAddress(operation types.OperationType, args []types.WatchAddressArg) error
WatchAddress makes a geth WatchAddress API call with the given operation and args
type Server ¶
type Server interface { ethnode.Lifecycle APIs() []rpc.API Protocols() []p2p.Protocol Serve(wg *sync.WaitGroup) }
Server is the top level interface for exposing remote RPC API
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the underlying struct for the service
Click to show internal directories.
Click to hide internal directories.