jsonlines

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(configuration map[string]interface{}) (output.Output, error)

Types

type Config

type Config map[string]interface{}

func (Config) Path

func (c Config) Path() string

type FileInfo

type FileInfo struct {
	Version   int           `json:"version"`
	Timestamp jsontime.Time `json:"updated_at"` // Timestamp of the generation
	Format    string        `json:"format"`
}

type Output

type Output struct {
	output.Output
	// contains filtered or unexported fields
}

func (*Output) Save

func (o *Output) Save(nodes *runtime.Nodes)

type RawNode

type RawNode struct {
	Firstseen    jsontime.Time          `json:"firstseen"`
	Lastseen     jsontime.Time          `json:"lastseen"`
	Online       bool                   `json:"online"`
	Statistics   *data.Statistics       `json:"statistics"`
	Nodeinfo     *data.Nodeinfo         `json:"nodeinfo"`
	Neighbours   *data.Neighbours       `json:"neighbours"`
	CustomFields map[string]interface{} `json:"custom_fields"`
}

RawNode struct

Jump to

Keyboard shortcuts

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