ioc

package
v1.8.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IoC

type IoC struct {
	sod.Item
	Source string `json:"source" sod:"index"`
	// Key can be used to group IoCs
	Key   string `json:"key" sod:"index"`
	Value string `json:"value" sod:"index"`
	Type  string `json:"type" sod:"index"`
}

func FromObjects

func FromObjects(obs ...sod.Object) (out []*IoC)

type IoCs

type IoCs struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewIocs

func NewIocs() *IoCs

func (*IoCs) Add

func (i *IoCs) Add(iocs ...*IoC)

func (*IoCs) Del

func (i *IoCs) Del(iocs ...*IoC)

func (*IoCs) FromDB

func (i *IoCs) FromDB(db *sod.DB) error

func (*IoCs) Hash

func (i *IoCs) Hash() string

func (*IoCs) StringSlice

func (i *IoCs) StringSlice() (s []string)

Jump to

Keyboard shortcuts

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