Documentation ¶
Overview ¶
https://www.blockchain-altcoin.com/global-id
Index ¶
- Constants
- func WithAuth(a *auth.Auth) func(*Explorer)
- func WithConfig(cfg *config.Config) func(*Explorer)
- func WithLocales(cfg config.Locales) func(*Explorer)
- func WithLogs(logs *zap.Logger) func(*Explorer)
- func WithMetadata(metadata config.Metadata) func(*Explorer)
- func WithMetrics(m *metrics.Metrics) func(*Explorer)
- func WithModel(evt *model.Model) func(*Explorer)
- func WithRecaptcha(cfg config.ReCaptcha, log *zap.Logger) func(*Explorer)
- func WithWebSockets() func(*Explorer)
- type BodyReceived
- type Error
- type ErrorResponse
- type Explorer
- func (e *Explorer) ExecuteTemplate(rw http.ResponseWriter, r *http.Request, name string, data interface{})
- func (e *Explorer) JSON(rw http.ResponseWriter, resp interface{})
- func (e *Explorer) JSONfail(err error, w http.ResponseWriter)
- func (e *Explorer) PProf(mux *http.ServeMux)
- func (e *Explorer) Shutdown(ctx context.Context)
- func (e *Explorer) Start(stop chan error)
- func (e *Explorer) StartMetricsServer(stop chan error)
- type FrontData
- type GenericError
- type Healthz
- type Menus
- type State
- type UnspTxOutput
Constants ¶
View Source
const ( // XRequestIDHeaderKey represent the label of X request ID header. XRequestIDHeaderKey = "X-Request-ID" // XRequestIDHeaderKey represent the label of request ID header. RequestIDHeader = "RequestID" )
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶
func WithLocales ¶
func WithMetadata ¶
func WithMetrics ¶
func WithWebSockets ¶
func WithWebSockets() func(*Explorer)
Types ¶
type BodyReceived ¶
type BodyReceived interface{}
type ErrorResponse ¶
type ErrorResponse struct { // The status code Code int `json:"code"` // The error message Message string `json:"message"` }
ErrorResponse structure of error response.
type Explorer ¶
type Explorer struct {
// contains filtered or unexported fields
}
func (*Explorer) ExecuteTemplate ¶
func (*Explorer) JSON ¶
func (e *Explorer) JSON(rw http.ResponseWriter, resp interface{})
func (*Explorer) JSONfail ¶
func (e *Explorer) JSONfail(err error, w http.ResponseWriter)
fail Respond error to json format.
func (*Explorer) StartMetricsServer ¶
type FrontData ¶
type GenericError ¶
type GenericError struct { // in: body Body ErrorResponse `json:"body"` }
GenericError Default response when we have an error.
swagger:response genericError nolint
type UnspTxOutput ¶
Source Files ¶
- error.go
- frontdata.go
- menus.go
- metrics.go
- middleware.go
- not_found.go
- page_about.go
- page_block_create.go
- page_block_state.go
- page_contact.go
- page_detest.go
- page_faq.go
- page_home.go
- page_inscription.go
- page_login.go
- page_oauth_global-id.go
- page_privacy-policy.go
- page_sitemap.go
- page_terms-of-service.go
- page_wallet.go
- router.go
- server.go
- templates.go
- utils.go
Click to show internal directories.
Click to hide internal directories.