Documentation ¶
Index ¶
- Variables
- func Generate(b *rod.Browser, c GenerateConfig) ([]byte, error)
- func InitLogging(mode string)
- func ParseDate(d time.Time) string
- func Router(e *echo.Echo)
- func Server()
- func ToJson(d any) string
- type CommonData
- type EarthquakeInfoForm
- type GenerateConfig
- type Handler
- type PositionData
- type Template
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcmap = template.FuncMap{ "parseDate": ParseDate, "json": ToJson, }
View Source
var Logger *zap.Logger = nil
View Source
var Sugar *zap.SugaredLogger = nil
Functions ¶
func InitLogging ¶
func InitLogging(mode string)
Types ¶
type CommonData ¶
type EarthquakeInfoForm ¶
type EarthquakeInfoForm struct { Epicenter PositionData `json:"epicenter,omitempty"` Ints struct { Int1 []PositionData `json:"int1,omitempty"` Int2 []PositionData `json:"int2,omitempty"` Int3 []PositionData `json:"int3,omitempty"` Int4 []PositionData `json:"int4,omitempty"` Int5l []PositionData `json:"int5l,omitempty"` Int5u []PositionData `json:"int5u,omitempty"` Int6l []PositionData `json:"int6l,omitempty"` Int6u []PositionData `json:"int6u,omitempty"` Int7 []PositionData `json:"int7,omitempty"` } `json:"ints"` CommonData }
type Handler ¶
type Handler struct { }
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) EarthquakeInfoHandler ¶
func (*Handler) RootHandler ¶
type PositionData ¶
Click to show internal directories.
Click to hide internal directories.