Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

message source pure

Constants 1

const FuncTypeIngest, FuncTypeCommit, FuncTypeRequest

 1const (
 2	// FuncTypeIngest means the agent is sending data for ingestion.
 3	FuncTypeIngest FuncType = "ingest"
 4	// FuncTypeCommit means the agent is requesting a feed commit the transitive data
 5	// being held by its ingester.
 6	FuncTypeCommit FuncType = "commit"
 7	// FuncTypeRequest means the agent is requesting feed definitions for all those
 8	// that it is whitelisted to provide data for.
 9	FuncTypeRequest FuncType = "request"
10)
source

Functions 2

func ParseID

1func ParseID(rawMsg string) (string, string)
source

ParseID parses a raw message and returns the ID extracted from the remainder of the message.

func ParseFunc

1func ParseFunc(rawMsg string) (FuncType, string)
source

ParseFunc parses a raw message and returns the message function type extracted from the remainder of the message.

Types 1

type FuncType

ident
1type FuncType string
source

FuncType is the type of function that is being called by the agent.

Imports 1

  • strings stdlib

Source Files 3