api

package
v1.0.10-0...-7349ede Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidParamsMessage = "Invalid query or path parameters"

Variables

This section is empty.

Functions

func JetDropToAPI

func JetDropToAPI(jetDrop models.JetDrop, prevJetDrops, nextJetDrops []server.NextPrevJetDrop) server.JetDrop

func NullableString

func NullableString(s string) *string

func PulseToAPI

func PulseToAPI(pulse models.Pulse) server.Pulse

func RecordToAPI

func RecordToAPI(record models.Record) server.Record

Types

type PromHTTPLoggerAdapter

type PromHTTPLoggerAdapter struct {
	log.Logger
}

func (PromHTTPLoggerAdapter) Println

func (o PromHTTPLoggerAdapter) Println(v ...interface{})

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() *Router

func (*Router) Start

func (r *Router) Start(ctx context.Context) error

func (*Router) Stop

func (r *Router) Stop(ctx context.Context) error

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, storage interfaces.StorageAPIFetcher, config configuration.API) *Server

NewServer returns instance of API server

func (*Server) JetDropByID

func (s *Server) JetDropByID(ctx echo.Context, jetDropID server.JetDropIdPath) error

func (*Server) JetDropRecords

func (s *Server) JetDropRecords(ctx echo.Context, jetDropID server.JetDropIdPath, params server.JetDropRecordsParams) error

func (*Server) JetDropsByJetID

func (s *Server) JetDropsByJetID(ctx echo.Context, jetID server.JetIdPath, params server.JetDropsByJetIDParams) error

func (*Server) JetDropsByPulseNumber

func (s *Server) JetDropsByPulseNumber(ctx echo.Context, pulseNumber server.PulseNumberPath, params server.JetDropsByPulseNumberParams) error

func (*Server) ObjectLifeline

func (s *Server) ObjectLifeline(ctx echo.Context, objectReference server.ObjectReferencePath, params server.ObjectLifelineParams) error

func (*Server) Pulse

func (s *Server) Pulse(ctx echo.Context, pulseNumber server.PulseNumberPath) error

func (*Server) Pulses

func (s *Server) Pulses(ctx echo.Context, params server.PulsesParams) error

func (*Server) Search

func (s *Server) Search(ctx echo.Context, params server.SearchParams) error

Jump to

Keyboard shortcuts

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