controllers

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRelayHandlers

func AutoRelayHandlers(r *mux.Router)

AutoRelayHandlers - handlers for AutoRelay

func EventHandlers

func EventHandlers(r *mux.Router)

func FlowHandlers

func FlowHandlers(r *mux.Router)

func IntegrationHandlers

func IntegrationHandlers(r *mux.Router)

func JITHandlers

func JITHandlers(r *mux.Router)

func ListRoles

func ListRoles(w http.ResponseWriter, r *http.Request)

@Summary List all user roles @Router /api/v1/users/roles [get] @Tags Users @Security oauth @Produce json @Param platform query string false "If true, lists platform roles. Otherwise, lists network roles." @Success 200 {object} []schema.UserRole @Failure 500 {object} models.ErrorResponse

func MetricHandlers

func MetricHandlers(r *mux.Router)

MetricHandlers - How we handle Pro Metrics

func NetworkHandlers

func NetworkHandlers(r *mux.Router)

func OnlyServerAPIWhenUnlicensedMiddleware

func OnlyServerAPIWhenUnlicensedMiddleware(handler http.Handler) http.Handler

func PostureCheckHandlers

func PostureCheckHandlers(r *mux.Router)

func RacHandlers

func RacHandlers(r *mux.Router)

func ServerHandlers

func ServerHandlers(r *mux.Router)

func TagHandlers

func TagHandlers(r *mux.Router)

func UserHandlers

func UserHandlers(r *mux.Router)

Types

type FlowRow

type FlowRow struct {
	FlowID        string    `ch:"flow_id" json:"flow_id"`
	TenantID      string    `ch:"tenant_id" json:"tenant_id"`
	HostID        string    `ch:"host_id" json:"host_id"`
	HostName      string    `ch:"host_name" json:"host_name"`
	NetworkID     string    `ch:"network_id" json:"network_id"`
	Protocol      uint16    `ch:"protocol" json:"protocol"`
	SrcPort       uint16    `ch:"src_port" json:"src_port"`
	DstPort       uint16    `ch:"dst_port" json:"dst_port"`
	ICMPType      uint8     `ch:"icmp_type" json:"icmp_type"`
	ICMPCode      uint8     `ch:"icmp_code" json:"icmp_code"`
	Direction     string    `ch:"direction" json:"direction"`
	SrcIP         string    `ch:"src_ip" json:"src_ip"`
	SrcType       string    `ch:"src_type" json:"src_type"`
	SrcEntityID   string    `ch:"src_entity_id" json:"src_entity_id"`
	SrcEntityName string    `ch:"src_entity_name" json:"src_entity_name"`
	DstIP         string    `ch:"dst_ip" json:"dst_ip"`
	DstType       string    `ch:"dst_type" json:"dst_type"`
	DstEntityID   string    `ch:"dst_entity_id" json:"dst_entity_id"`
	DstEntityName string    `ch:"dst_entity_name" json:"dst_entity_name"`
	StartTs       time.Time `ch:"start_ts" json:"start_ts"`
	EndTs         time.Time `ch:"end_ts" json:"end_ts"`
	BytesSent     uint64    `ch:"bytes_sent" json:"bytes_sent"`
	BytesRecv     uint64    `ch:"bytes_recv" json:"bytes_recv"`
	PacketsSent   uint64    `ch:"packets_sent" json:"packets_sent"`
	PacketsRecv   uint64    `ch:"packets_recv" json:"packets_recv"`
	Status        uint32    `ch:"status" json:"status"`
	Version       time.Time `ch:"version" json:"version"`
}

FlowRow represents a single flow log entry

Jump to

Keyboard shortcuts

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