controller

package
v0.0.0-...-a55f869 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticController

type ElasticController struct{}

ElasticController Object

func (ElasticController) Elastic

func (p ElasticController) Elastic(c *gin.Context)

Elastic Function Controller

type HealthController

type HealthController struct{}

func (HealthController) Status

func (h HealthController) Status(c *gin.Context)

Status Get health Status All

func (HealthController) StatusCpu

func (h HealthController) StatusCpu(c *gin.Context)

StatusCpu Get CPU Stats in spesific

func (HealthController) StatusDisk

func (h HealthController) StatusDisk(c *gin.Context)

StatusCpu Get Disk Stats in spesific

func (HealthController) StatusMem

func (h HealthController) StatusMem(c *gin.Context)

StatusCpu Get Mem Status in spesific

type KafkaController

type KafkaController struct{}

KafkaController Types

func (KafkaController) KafkaTest

func (p KafkaController) KafkaTest(c *gin.Context)

KafkaTest Function

type Login

type Login struct {
	Username string `form:"username" binding:"required"`
	Password string `form:"password" binding:"required"`
}

type LoginController

type LoginController struct{}

func (LoginController) ListLogin

func (h LoginController) ListLogin(c *gin.Context)

ListLogin controller

func (LoginController) LoginUsers

func (h LoginController) LoginUsers(c *gin.Context)

type PingController

type PingController struct{}

PingController Object

func (PingController) Ping

func (p PingController) Ping(c *gin.Context)

Ping Function Controller

type SenDFormat

type SenDFormat struct {
	Taskid string      `json:"task_id"`
	Data   interface{} `json:"data"`
}

SenDFormat | Sending To Kafka

type Tweet

type Tweet struct {
	User     string                `json:"user"`
	Message  string                `json:"message"`
	Retweets int                   `json:"retweets"`
	Image    string                `json:"image,omitempty"`
	Created  time.Time             `json:"created,omitempty"`
	Tags     []string              `json:"tags,omitempty"`
	Location string                `json:"location,omitempty"`
	Suggest  *elastic.SuggestField `json:"suggest_field,omitempty"`
}

Jump to

Keyboard shortcuts

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