synchronize

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_INACTIVITY_TIMEOUT = 1 * time.Minute
)

Variables

View Source
var (
	STATUS_SUCCESS       = api.Status_SUCCESS
	STATUS_FAILED        = api.Status_FAILED
	STATUS_HEARTBEAT     = api.Status_HEARTBEAT
	CLUSTER_ID_NOT_FOUND = api.Status_CLUSTER_ID_NOT_FOUND
)
View Source
var (
	RAW_UDP_SOCKET = api.SocketType_RAW_UDP
	TCP_SOCKET     = api.SocketType_TCP
	UDP_SOCKET     = api.SocketType_UDP
	FILE_SOCKET    = api.SocketType_FILE
)
View Source
var EmptyGPIDResponse = &api.GPIDSyncResponse{}
View Source
var EmptyNtpResponse = &api.NtpResponse{}
View Source
var SOCKET_TYPE_TO_MESSAGE = map[string]api.SocketType{
	"RAW_UDP": RAW_UDP_SOCKET,
	"TCP":     TCP_SOCKET,
	"UDP":     UDP_SOCKET,
	"FILE":    FILE_SOCKET,
}

Functions

func Int2Bool

func Int2Bool(i int) bool

Types

type KubernetesClusterIDEvent

type KubernetesClusterIDEvent struct {
}

func NewKubernetesClusterIDEvent

func NewKubernetesClusterIDEvent() *KubernetesClusterIDEvent

func (*KubernetesClusterIDEvent) GetKubernetesClusterID

type NTPEvent

type NTPEvent struct{}

func NewNTPEvent

func NewNTPEvent() *NTPEvent

func (*NTPEvent) Query

func (e *NTPEvent) Query(ctx context.Context, in *api.NtpRequest) (*api.NtpResponse, error)

type PluginData

type PluginData struct {
	// contains filtered or unexported fields
}

type PluginEvent

type PluginEvent struct{}

func NewPluginEvent

func NewPluginEvent() *PluginEvent

func (*PluginEvent) GetPluginData

func (p *PluginEvent) GetPluginData(r *api.PluginRequest, orgID int) (*PluginData, error)

func (*PluginEvent) Plugin

type ProcessInfoEvent

type ProcessInfoEvent struct{}

func NewprocessInfoEvent

func NewprocessInfoEvent() *ProcessInfoEvent

func (*ProcessInfoEvent) GPIDSync

func (*ProcessInfoEvent) ShareGPIDLocalData

type TSDBEvent

type TSDBEvent struct{}

func NewTSDBEvent

func NewTSDBEvent() *TSDBEvent

func (*TSDBEvent) AnalyzerSync

func (e *TSDBEvent) AnalyzerSync(ctx context.Context, in *api.SyncRequest) (*api.SyncResponse, error)

func (*TSDBEvent) GetOrgIDs

func (e *TSDBEvent) GetOrgIDs(ctx context.Context, in *api.OrgIDsRequest) (*api.OrgIDsResponse, error)

func (*TSDBEvent) GetUniversalTagNameMaps

func (*TSDBEvent) Push

type UpgradeData

type UpgradeData struct {
	// contains filtered or unexported fields
}

type UpgradeEvent

type UpgradeEvent struct{}

func NewUpgradeEvent

func NewUpgradeEvent() *UpgradeEvent

func (*UpgradeEvent) GetUpgradeFile

func (e *UpgradeEvent) GetUpgradeFile(upgradePackage string, expectedRevision string, orgID int) (*UpgradeData, error)

func (*UpgradeEvent) Upgrade

type VTapEvent

type VTapEvent struct{}

func NewVTapEvent

func NewVTapEvent() *VTapEvent

func (*VTapEvent) GetFailedResponse

func (e *VTapEvent) GetFailedResponse(in *api.SyncRequest, gVTapInfo *vtap.VTapInfo) *api.SyncResponse

func (*VTapEvent) Push

The first push link sends full data

func (*VTapEvent) RemoteExecute

func (e *VTapEvent) RemoteExecute(stream api.Synchronizer_RemoteExecuteServer) error

func (*VTapEvent) Sync

func (e *VTapEvent) Sync(ctx context.Context, in *api.SyncRequest) (*api.SyncResponse, error)

Jump to

Keyboard shortcuts

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