eosq

package
v0.9.0-beta9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultQValue is the default qvalue to assign to an encoding if no explicit qvalue is set.
	// This is actually kind of ambiguous in RFC 2616, so hopefully it's correct.
	// The examples seem to indicate that it is.
	DefaultQValue = 1.0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*shutter.Shutter

	Ready chan interface{}
	// contains filtered or unexported fields
}

func New

func New(config *Config) *App

func (*App) IsReady

func (a *App) IsReady() bool

func (*App) OnReady

func (a *App) OnReady(f func())

func (*App) Run

func (a *App) Run() error

type Config

type Config struct {
	HTTPListenAddr string
	Environment    string // i.e: production
	// EOSQ configruation payload
	APIEndpointURL    string // i.e: https://dev1.api.dfuse.dev
	ApiKey            string // i.e: web_XXXXXXXXXXXXXXXXXXXXXX
	AuthEndpointURL   string // i.e: https://auth.dfuse.io
	AvailableNetworks string // this is a JSON string ie: '[{"id": "eos-mainnet", "is_test": false, "logo": "/images/eos-mainnet.png", "name": "EOS Mainnet", "url": "https://eosq.app"}]'
	ChainCoreSymbol   string // The chain's core symbol to use in the config, should be in the form <precision>,<symbol code> like 4,EOS.
	DisableAnalytics  bool   // Disables sentry and segment
	DefaultNetwork    string // The default network that is displayed, should correspond to an id in the avaiable networks
	DisplayPrice      bool   // Should eosq display prices
}

type Network

type Network struct {
	Id     string
	Name   string
	IsTest bool
	URL    string
}

type Server

type Server struct {
	*shutter.Shutter
	// contains filtered or unexported fields
}

func (*Server) Launch

func (s *Server) Launch() error

func (*Server) ServerHttp

func (s *Server) ServerHttp(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL