api

package
v0.0.0-...-b006faa Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARestFul

type ARestFul struct {
	Server *http.Server
	Core   *core.Core
	// contains filtered or unexported fields
}

func PushARestFul

func PushARestFul(s *session.Session) *ARestFul

func (*ARestFul) GetBestMovers

func (api *ARestFul) GetBestMovers(w http.ResponseWriter, r *http.Request)

func (*ARestFul) GetMovers

func (api *ARestFul) GetMovers(w http.ResponseWriter, r *http.Request)

func (*ARestFul) GetPositions

func (api *ARestFul) GetPositions(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Intervals

func (api *ARestFul) Intervals(w http.ResponseWriter, r *http.Request)

func (*ARestFul) LoadRouter

func (api *ARestFul) LoadRouter() *mux.Router

func (*ARestFul) Module

func (api *ARestFul) Module(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Modules

func (api *ARestFul) Modules(w http.ResponseWriter, r *http.Request)

func (*ARestFul) PutTracker

func (api *ARestFul) PutTracker(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Result

func (api *ARestFul) Result(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Results

func (api *ARestFul) Results(w http.ResponseWriter, r *http.Request)

func (*ARestFul) RunModule

func (api *ARestFul) RunModule(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Sessions

func (api *ARestFul) Sessions(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Start

func (api *ARestFul) Start()

func (*ARestFul) Target

func (api *ARestFul) Target(w http.ResponseWriter, r *http.Request)

func (*ARestFul) TargetByType

func (api *ARestFul) TargetByType(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Targets

func (api *ARestFul) Targets(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Tracker

func (api *ARestFul) Tracker(w http.ResponseWriter, r *http.Request)

func (*ARestFul) Trackers

func (api *ARestFul) Trackers(w http.ResponseWriter, r *http.Request)

type Module

type Module struct {
	Name        string
	Description string
	Author      string
}

type OneSession

type OneSession struct {
	Id          int    `json:"id"`
	SessionName string `json:"session_id"`
}

func (OneSession) TableName

func (OneSession) TableName() string

type TargetInformationResponse

type TargetInformationResponse struct {
	TargetId   string                           `json:"target_id"`
	TargetName string                           `json:"target_name"`
	TargetType string                           `json:"target_type"`
	OpfResults map[string][]*session.OpfResults `json:"target_results"`
}
type TargetLink struct {
	TargetId       string `json:"target_id"`
	TargetName     string `json:"target_name"`
	TargetType     string `json:"target_type"`
	TargetResultId string `json:"target_result_id"`
}

type TargetsResponse

type TargetsResponse struct {
	TargetId     string       `json:"target_id"`
	TargetName   string       `json:"target_name"`
	TargetType   string       `json:"target_type"`
	TargetLinked []TargetLink `json:"target_linked"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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