Documentation ¶
Index ¶
- Constants
- Variables
- func FetchCurrentPhylaxSet(rpcUrl, coreAddr string) (*common.PhylaxSet, error)
- func NewHTTPServer(addr string, t *pubsub.Topic, permissions Permissions, ...) *http.Server
- func NewStatusServer(addr string, logger *zap.Logger, env common.Environment) *http.Server
- type AllowedCall
- type Config
- type EthCall
- type EthCallByTimestamp
- type EthCallWithFinality
- type P2PSub
- type PendingResponse
- type PendingResponses
- type Permissions
- type PhylaxSignature
- type SignedResponse
- type User
Constants ¶
View Source
const CCQ_SERVER_SIGNING_KEY = "CCQ SERVER SIGNING KEY"
View Source
const DEV_NETWORK_ID = "/deltaswap/dev"
View Source
const ETH_CALL_SIG_LENGTH = 4
View Source
const MAX_BODY_SIZE = 5 * 1024 * 1024
Variables ¶
View Source
var QueryServerCmd = &cobra.Command{
Use: "query-server",
Short: "Run the cross-chain query server",
Run: runQueryServer,
}
Functions ¶
func FetchCurrentPhylaxSet ¶
func NewHTTPServer ¶
func NewHTTPServer(addr string, t *pubsub.Topic, permissions Permissions, signerKey *ecdsa.PrivateKey, p *PendingResponses, logger *zap.Logger, env common.Environment) *http.Server
func NewStatusServer ¶
Types ¶
type AllowedCall ¶
type AllowedCall struct { EthCall *EthCall `json:"ethCall"` EthCallByTimestamp *EthCallByTimestamp `json:"ethCallByTimestamp"` EthCallWithFinality *EthCallWithFinality `json:"ethCallWithFinality"` }
type EthCallByTimestamp ¶
type EthCallWithFinality ¶
type PendingResponse ¶
type PendingResponse struct {
// contains filtered or unexported fields
}
func NewPendingResponse ¶
func NewPendingResponse(req *gossipv1.SignedQueryRequest) *PendingResponse
type PendingResponses ¶
type PendingResponses struct {
// contains filtered or unexported fields
}
func NewPendingResponses ¶
func NewPendingResponses() *PendingResponses
func (*PendingResponses) Add ¶
func (p *PendingResponses) Add(r *PendingResponse) bool
func (*PendingResponses) Get ¶
func (p *PendingResponses) Get(signature string) *PendingResponse
func (*PendingResponses) Remove ¶
func (p *PendingResponses) Remove(r *PendingResponse)
type Permissions ¶
type Permissions map[string]*permissionEntry
type PhylaxSignature ¶
type SignedResponse ¶
type SignedResponse struct { Response *query.QueryResponsePublication Signatures []PhylaxSignature }
Click to show internal directories.
Click to hide internal directories.