analysis

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	NewAnalysisRunning() *horusecEntities.Analysis
	DecodeAnalysisDataFromIoRead(body io.ReadCloser) (analysisData *apiEntities.AnalysisData, err error)
	DecodeAnalysisFromBytes(body []byte) (analysis *horusecEntities.Analysis, err error)
	ParseInterfaceToListAnalysis(data interface{}) (analysis []*horusecEntities.Analysis, err error)
	ParseInterfaceToAnalysis(data interface{}) (analysis *horusecEntities.Analysis, err error)
	ParsePacketToAnalysis(packet brokerPacket.IPacket) (analysis *horusecEntities.Analysis, err error)
	SetFindOneFilter(analysisID string) map[string]interface{}
}

func NewAnalysisUseCases

func NewAnalysisUseCases() Interface

type UseCases

type UseCases struct {
}

func (*UseCases) DecodeAnalysisDataFromIoRead

func (au *UseCases) DecodeAnalysisDataFromIoRead(body io.ReadCloser) (
	analysisData *apiEntities.AnalysisData, err error)

func (*UseCases) DecodeAnalysisFromBytes added in v1.3.0

func (au *UseCases) DecodeAnalysisFromBytes(body []byte) (analysis *horusecEntities.Analysis, err error)

func (*UseCases) NewAnalysisRunning

func (au *UseCases) NewAnalysisRunning() *horusecEntities.Analysis

func (*UseCases) ParseInterfaceToAnalysis

func (au *UseCases) ParseInterfaceToAnalysis(data interface{}) (*horusecEntities.Analysis, error)

func (*UseCases) ParseInterfaceToListAnalysis

func (au *UseCases) ParseInterfaceToListAnalysis(data interface{}) (analysis []*horusecEntities.Analysis, err error)

func (*UseCases) ParsePacketToAnalysis

func (au *UseCases) ParsePacketToAnalysis(
	packet brokerPacket.IPacket) (analysis *horusecEntities.Analysis, err error)

func (*UseCases) SetFindOneFilter

func (au *UseCases) SetFindOneFilter(analysisID string) map[string]interface{}

Jump to

Keyboard shortcuts

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