Documentation ¶
Index ¶
- Constants
- func ChainInjector(srv *Manager) echo.MiddlewareFunc
- func Chunk() echo.MiddlewareFunc
- func HTTPErrorHandler(err error, c echo.Context)
- func JsonRpc(mr *jsonrpc.MethodRepository) echo.MiddlewareFunc
- func JsonRpcLogger() echo.MiddlewareFunc
- func NoneMiddlewareFunc(next echo.HandlerFunc) echo.HandlerFunc
- func Redoc(opts RedocOpts) echo.HandlerFunc
- func Unauthorized(readOnly bool) echo.MiddlewareFunc
- func Upgrader() *websocket.Upgrader
- type BlockNotification
- type BlockRequest
- type EventFilter
- type EventNotification
- type EventRequest
- type Manager
- func (srv *Manager) AdminEchoGroup(m ...echo.MiddlewareFunc) *echo.Group
- func (srv *Manager) Chain(channel string) module.Chain
- func (srv *Manager) CheckDebug() echo.MiddlewareFunc
- func (srv *Manager) IncludeDebug() bool
- func (srv *Manager) MessageDump() bool
- func (srv *Manager) RemoveChain(channel string)
- func (srv *Manager) SetChain(channel string, chain module.Chain)
- func (srv *Manager) SetDefaultChannel(jsonrpcDefaultChannel string)
- func (srv *Manager) SetIncludeDebug(enable bool)
- func (srv *Manager) SetMessageDump(enable bool)
- func (srv *Manager) Start() error
- func (srv *Manager) Stop() error
- type RedocOpts
- type WSResponse
Constants ¶
View Source
const (
UrlAdmin = "/admin"
)
Variables ¶
This section is empty.
Functions ¶
func ChainInjector ¶
func ChainInjector(srv *Manager) echo.MiddlewareFunc
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
func NoneMiddlewareFunc ¶
func NoneMiddlewareFunc(next echo.HandlerFunc) echo.HandlerFunc
func Unauthorized ¶
func Unauthorized(readOnly bool) echo.MiddlewareFunc
Types ¶
type BlockNotification ¶
type BlockRequest ¶
type BlockRequest struct { Height common.HexInt64 `json:"height"` EventFilters []*EventFilter `json:"eventFilters,omitempty"` // contains filtered or unexported fields }
type EventFilter ¶
type EventNotification ¶
type EventRequest ¶
type EventRequest struct { EventFilter Height common.HexInt64 `json:"height"` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AdminEchoGroup ¶
func (srv *Manager) AdminEchoGroup(m ...echo.MiddlewareFunc) *echo.Group
func (*Manager) CheckDebug ¶
func (srv *Manager) CheckDebug() echo.MiddlewareFunc
func (*Manager) IncludeDebug ¶
func (*Manager) MessageDump ¶
func (*Manager) RemoveChain ¶
func (*Manager) SetDefaultChannel ¶
func (*Manager) SetIncludeDebug ¶
func (*Manager) SetMessageDump ¶
type RedocOpts ¶
type RedocOpts struct { // BasePath for the UI path, defaults to: / BasePath string // Path combines with BasePath for the full UI path, defaults to: docs Path string // SpecURL the url to find the spec for SpecURL string // RedocURL for the js that generates the redoc site, defaults to: https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js RedocURL string // Title for the documentation site, default to: API documentation Title string }
func (*RedocOpts) EnsureDefaults ¶
func (r *RedocOpts) EnsureDefaults()
type WSResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.