api

package
v0.0.0-...-362a939 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Types

type GetItemResponse

type GetItemResponse struct {
	Message string
	Data    []*g.DetectedItem
}

type SendResultReq

type SendResultReq struct {
	Hostname     string
	CheckResults []*g.CheckResult
}

type StrategyResponse

type StrategyResponse struct {
	Message string
	Data    []*model.Strategy
}

type UsersResponse

type UsersResponse struct {
	Message string
	Data    []*model.User
}

type Web

type Web int

func (*Web) GetItem

func (this *Web) GetItem(hostname string, resp *GetItemResponse) error

func (*Web) GetStrategies

func (this *Web) GetStrategies(req interface{}, resp *StrategyResponse) error

func (*Web) GetUsersByTeam

func (this *Web) GetUsersByTeam(req string, reply *UsersResponse) error

func (*Web) Ping

func (this *Web) Ping(req interface{}, reply *string) error

func (*Web) SaveEvent

func (this *Web) SaveEvent(event *model.Event, reply *string) error

func (*Web) SendResult

func (this *Web) SendResult(req SendResultReq, reply *string) error

Jump to

Keyboard shortcuts

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