filegen

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat = "2006-01-02T15"
)

Variables

This section is empty.

Functions

func ARN

func ARN() string

func AWSAccountID

func AWSAccountID() string

func Bool

func Bool() bool

func IP

func IP() string

func Int

func Int() int

func Int16

func Int16() int16

func Int32

func Int32() int32

func Int64

func Int64() int64

func Intn

func Intn(n int) int

func RawMessage

func RawMessage(atLeast, atMost int) pantherlog.RawMessage

func String

func String(n int) string

func StringAlphaNum

func StringAlphaNum(n int) string

func StringChoice

func StringChoice(choices []string) string

func StringSlice

func StringSlice(n, m int) []string

func ToPantherBool

func ToPantherBool(b bool) pantherlog.Bool

func ToPantherInt32

func ToPantherInt32(i int32) pantherlog.Int32

func ToPantherInt64

func ToPantherInt64(i int64) pantherlog.Int64

func ToPantherString

func ToPantherString(s string) pantherlog.String

func ToPantherUint16

func ToPantherUint16(i uint16) pantherlog.Uint16

func Uint16

func Uint16() uint16

func Uint32

func Uint32() uint32

func Uint64

func Uint64() uint64

Types

type CSV

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

func NewCSV

func NewCSV() *CSV

func (*CSV) Delimiter

func (csv *CSV) Delimiter() string

func (*CSV) EndOfLine

func (csv *CSV) EndOfLine() string

func (*CSV) Rows

func (csv *CSV) Rows() int

func (*CSV) WithDelimiter

func (csv *CSV) WithDelimiter(delimiter string) *CSV

func (*CSV) WithRows

func (csv *CSV) WithRows(nrows int)

type File

type File struct {
	Data *bytes.Reader
	// contains filtered or unexported fields
}

func NewFile

func NewFile(gen Generator, hour time.Time) *File

func (*File) Close

func (f *File) Close()

func (*File) Name

func (f *File) Name() string

func (*File) TotalBytes

func (f *File) TotalBytes() uint64

func (*File) TotalUncompressedBytes

func (f *File) TotalUncompressedBytes() uint64

func (*File) Write

func (f *File) Write(b []byte) (int, error)

type Generator

type Generator interface {
	WithRows(nrows int) // set rows
	LogType() string
	Filename(hour time.Time) string
	NewFile(hour time.Time) *File
}

type JSON

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

func NewJSON

func NewJSON() *JSON

func (*JSON) EndOfLine

func (JSON *JSON) EndOfLine() []byte

func (*JSON) Rows

func (JSON *JSON) Rows() int

func (*JSON) WithRows

func (JSON *JSON) WithRows(nrows int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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