gateway

package
v0.2.208 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWindowOverlapsLastBlock = errors.New("window overlaps last block")

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*task.Task
}

func NewController

func NewController(config *config.Config) (self *Controller, err error)

Main class that orchestrates everything

type Server

type Server struct {
	*task.Task

	Router *gin.Engine
	// contains filtered or unexported fields
}

Rest API server, serves monitor counters

func NewServer

func NewServer(config *config.Config) (self *Server)

func (*Server) WithDB

func (self *Server) WithDB(v *gorm.DB) *Server

func (*Server) WithMonitor

func (self *Server) WithMonitor(m monitoring.Monitor) *Server

func (*Server) WithReadOnlyDB added in v0.2.8

func (self *Server) WithReadOnlyDB(v *gorm.DB) *Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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