argo-web-api: Index | Files

package topology

import ""


Package Files

controller.go model.go routing.go view.go

func CreateEndpoints Uses

func CreateEndpoints(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

CreateEndpoints Creates a list of endpoints for a specific date

func CreateGroups Uses

func CreateGroups(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

CreateGroups creates a list of groups as a group topology for a specific date

func DeleteEndpoints Uses

func DeleteEndpoints(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

DeleteEndpoints deletes a list of endpoints topology for a specific date

func DeleteGroups Uses

func DeleteGroups(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

DeleteGroups deletes a list of groups topology for a specific date

func HandleSubrouter Uses

func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)

HandleSubrouter uses the subrouter for a specific calls and creates a tree of sorts handling each route with a different subrouter

func ListEndpoints Uses

func ListEndpoints(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListEndpoints by date

func ListEndpointsByReport Uses

func ListEndpointsByReport(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListEndpointsByReport lists endpoint topology by report

func ListGroups Uses

func ListGroups(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListGroups by date

func ListGroupsByReport Uses

func ListGroupsByReport(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListGroupsByReport lists group topology by report

func ListTopoStats Uses

func ListTopoStats(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListTopoStats list statistics about the topology used in the report

func Options Uses

func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

Options implements the option request on resource

type Endpoint Uses

type Endpoint struct {
    Date      string            `bson:"date" json:"date"`
    DateInt   int               `bson:"date_integer" json:"-"`
    Group     string            `bson:"group" json:"group"`
    GroupType string            `bson:"type" json:"type"`
    Service   string            `bson:"service" json:"service"`
    Hostname  string            `bson:"hostname" json:"hostname"`
    Tags      map[string]string `bson:"tags" json:"tags"`

Endpoint includes information on endpoint group topology

type Group Uses

type Group struct {
    Date      string            `bson:"date" json:"date"`
    DateInt   int               `bson:"date_integer" json:"-"`
    Group     string            `bson:"group" json:"group"`
    GroupType string            `bson:"type" json:"type"`
    Subgroup  string            `bson:"subgroup" json:"subgroup"`
    Tags      map[string]string `bson:"tags" json:"tags"`

Group includes information on of group group topology

type Topology Uses

type Topology struct {
    GroupCount    int      `json:"group_count"`
    GroupType     string   `json:"group_type"`
    GroupList     []string `json:"group_list"`
    EndGroupCount int      `json:"endpoint_group_count"`
    EndGroupType  string   `json:"endpoint_group_type"`
    EndGroupList  []string `json:"endpoint_group_list"`
    ServiceCount  int      `json:"service_count"`
    ServiceList   []string `json:"service_list"`

Topology struct to represent topology statistics

Package topology imports 17 packages (graph) and is imported by 2 packages. Updated 2020-07-11. Refresh now. Tools for package owners.