trace

package
v0.0.0-...-9ff4ced Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EXPIRATION = time.Minute // Cache expiration duration for calling external API response

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct{}

func (*Trace) Bind

func (t *Trace) Bind(rg *gin.RouterGroup, jwtHandler *jwt.GinJWTMiddleware, options *services.Options) error

@Summary Seismic Trace @Description This API retrieves seismic events from the specified data source, including essential information such as event time, location, magnitude, depth and estimated distance and arrival time from the station. This API requires a valid JWT token if the server is in restricted mode. @Router /trace [post] @Produce application/json @Security ApiKeyAuth @Param source formData string true "Use `list` to get available sources first, then choose one and request again to get events" @Param Authorization header string false "Bearer JWT token, only required when the server is in restricted mode."

func (*Trace) GetApiName

func (t *Trace) GetApiName() string

Jump to

Keyboard shortcuts

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