api

package
v0.0.0-...-858c754 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTimerAPI

func InitTimerAPI(timer *timer.Service, r *gin.Engine)

Types

type CallbackAction

type CallbackAction struct {
	Type    string            `json:"type"`
	Method  string            `json:"method"`
	Uri     string            `json:"uri"`
	Headers map[string]string `json:"headers"`
	Payload string            `json:"payload"`
}

type CreateTimerRequest

type CreateTimerRequest struct {
	Mode     TimerMode      `json:"mode"`
	Callback CallbackAction `json:"callback"`
	Payload  string         `json:"payload"`
}

type TimerMode

type TimerMode struct {
	Mode      string `json:"mode"`
	Interval  uint32 `json:"interval"`
	Timestamp uint64 `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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