Documentation ¶
Index ¶
- Constants
- func JetDropToAPI(jetDrop models.JetDrop, prevJetDrops, nextJetDrops []server.NextPrevJetDrop) server.JetDrop
- func NullableString(s string) *string
- func PulseToAPI(pulse models.Pulse) server.Pulse
- func RecordToAPI(record models.Record) server.Record
- type PromHTTPLoggerAdapter
- type Router
- type Server
- func (s *Server) JetDropByID(ctx echo.Context, jetDropID server.JetDropIdPath) error
- func (s *Server) JetDropRecords(ctx echo.Context, jetDropID server.JetDropIdPath, ...) error
- func (s *Server) JetDropsByJetID(ctx echo.Context, jetID server.JetIdPath, params server.JetDropsByJetIDParams) error
- func (s *Server) JetDropsByPulseNumber(ctx echo.Context, pulseNumber server.PulseNumberPath, ...) error
- func (s *Server) ObjectLifeline(ctx echo.Context, objectReference server.ObjectReferencePath, ...) error
- func (s *Server) Pulse(ctx echo.Context, pulseNumber server.PulseNumberPath) error
- func (s *Server) Pulses(ctx echo.Context, params server.PulsesParams) error
- func (s *Server) Search(ctx echo.Context, params server.SearchParams) error
Constants ¶
View Source
const InvalidParamsMessage = "Invalid query or path parameters"
Variables ¶
This section is empty.
Functions ¶
func JetDropToAPI ¶
func NullableString ¶
Types ¶
type PromHTTPLoggerAdapter ¶
func (PromHTTPLoggerAdapter) Println ¶
func (o PromHTTPLoggerAdapter) Println(v ...interface{})
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 (*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
Click to show internal directories.
Click to hide internal directories.