http

package
v0.0.0-...-c9cb8e9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ok = iota
	BadParam
	InvalidTopic
	ServerErr
)

Variables

This section is empty.

Functions

func BatchIntakeData

func BatchIntakeData(c *gin.Context)

func IntakeData

func IntakeData(c *gin.Context)

func MixIntakeData

func MixIntakeData(c *gin.Context)

func Ping

func Ping(c *gin.Context)

Ping tests connection

Types

type BatchIntakeDataParam

type BatchIntakeDataParam struct {
	Topic string                   `json:"topic"`
	Data  []map[string]interface{} `json:"data"`
}

type IntakeDataParam

type IntakeDataParam struct {
	Topic string                 `json:"topic"`
	Data  map[string]interface{} `json:"data"`
}

type MixIntakeDataParam

type MixIntakeDataParam struct {
	Data []IntakeDataParam `json:"data"`
}

type Resp

type Resp struct {
	Code int8 `json:"code"`
}

Jump to

Keyboard shortcuts

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