app

package
v0.0.0-...-7fcd714 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Unlicense Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type COMHTTP

type COMHTTP struct {
	ID        string
	TLD       string
	Slug      string
	Title     string
	ProtoURL  string
	BodyClass string
	DATA      *Data
}

type Data

type Data struct {
	Our, Base, TLD, Slug, Bg, App, Section, URL, Page, ID, Title, Path, ProtoURL, Canonical string
	Coin                                                                                    coin.CoinShort
}

type Index

type Index struct {
	Slug string      `json:"slug"`
	Data interface{} `json:"data"`
}

type JORM

type JORM struct {
	Coins     []string
	Coin      string
	NodeCoins []string
	Explorers map[string]*explorer.ExplorerJDBs
	//Hosts         map[string]Host
	WWW       *http.Server
	WS        *http.Server
	TLSconfig *tls.Config
	// contains filtered or unexported fields
}

func NewJORM

func NewJORM(service, path, singleCoin string) (j *JORM)

func (*JORM) ADMINCoinHandler

func (j *JORM) ADMINCoinHandler(w http.ResponseWriter, r *http.Request)

CoinsHandler handles a request for coin data

func (*JORM) ADMINCoinsHandler

func (j *JORM) ADMINCoinsHandler(w http.ResponseWriter, r *http.Request)

CoinsHandler handles a request for coin data

func (*JORM) ADMINhandlers

func (j *JORM) ADMINhandlers() http.Handler

func (*JORM) COMHTTPhandlers

func (j *JORM) COMHTTPhandlers() http.Handler

func (*JORM) JDBclient

func (j *JORM) JDBclient(jdbId string) (*jdb.JDB, error)

func (*JORM) JORMhandlers

func (o *JORM) JORMhandlers() http.Handler

func (*JORM) JormSRV

func (j *JORM) JormSRV()

func (*JORM) Tickers

func (j *JORM) Tickers()

func (*JORM) WShandleR

func (o *JORM) WShandleR() http.Handler

type PageData

type PageData struct {
	Title    string
	Site     string
	HostSlug string
	Slug     string
	Section  string
	Template string
}

type WebSite

type WebSite struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Jump to

Keyboard shortcuts

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