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 ¶
Click to show internal directories.
Click to hide internal directories.