Documentation ¶
Overview ¶
Package stipapi provides RESTful API services for the STIP relayer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFeesAndRebatesToJSON ¶
func ConvertFeesAndRebatesToJSON(feesAndRebates stipconfig.FeesAndRebates) map[int]interface{}
ConvertFeesAndRebatesToJSON converts the configured fees and rebates to a JSON that is more consumable.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the REST API handler.
func NewHandler ¶
func NewHandler(cfg stipconfig.Config) *Handler
NewHandler creates a new REST API handler.
func (*Handler) GetFeeAndRebateInfo ¶
GetFeeAndRebateInfo returns the current STIP Relayer's rebate configuration.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server struct holds the configuration, gin engine, and metrics handler.
func NewStipAPI ¶
func NewStipAPI( ctx context.Context, cfg stipconfig.Config, handler metrics.Handler, ) (*Server, error)
NewStipAPI creates a new instance of Server with the provided configuration and metrics handler.
Click to show internal directories.
Click to hide internal directories.