hostsnap

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const MockMessage = "" /* 7086-byte string literal not displayed */

Variables

This section is empty.

Functions

func ParseHostSnap

func ParseHostSnap(snapData *gjson.Result) (*string, error)

ParseHostSnap parse host snapshot info

Types

type HostSnap

type HostSnap struct {
	*backbone.Engine
	// contains filtered or unexported fields
}

func NewHostSnap

func NewHostSnap(ctx context.Context, redisCli *redis.Client, db dal.RDB, engine *backbone.Engine, authManager *extensions.AuthManager) *HostSnap

func (*HostSnap) Analyze

func (h *HostSnap) Analyze(msg *string) error

func (*HostSnap) Hash

func (h *HostSnap) Hash(cloudid, ip string) (string, error)

Hash returns hash value base on message.

func (*HostSnap) Mock

func (h *HostSnap) Mock() string

Mock returns local mock message for testing.

Jump to

Keyboard shortcuts

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