rest

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

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const AddChainRoute = "/add"
View Source
const DeleteChainRoute = "/delete"
View Source
const (
	GetChainRoute = "/chain/:chain"
)
View Source
const GetChainsRoute = "/chains"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddChainRequest

type AddChainRequest struct {
	models.Chain

	SkipChannelCreation  bool                           `json:"skip_channel_creation"`
	NodeConfig           *operator.NodeConfiguration    `json:"node_config"`
	RelayerConfiguration *operator.RelayerConfiguration `json:"relayer_configuration"`
}

type AuthHeader

type AuthHeader struct {
	Token string `header:"Authorization"`
}

type DeleteChainRequest

type DeleteChainRequest struct {
	Chain string `json:"chain" binding:"required"`
}

type GetChainResp

type GetChainResp struct {
	Chain models.Chain `json:"chain"`
}

type GetChainsResp

type GetChainsResp struct {
	Chains []models.Chain `json:"chains"`
}

type Server

type Server struct {
	DB *database.Instance

	KubeClient *kube.Client

	Config *config.Config
	// contains filtered or unexported fields
}

func NewServer

func NewServer(l *zap.SugaredLogger, d *database.Instance, kube kube.Client, rc *chainwatch.Connection, config *config.Config, a *auth.OAServer) *Server

func (*Server) Serve

func (s *Server) Serve(where string) error

Jump to

Keyboard shortcuts

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