writecloser

package
v0.0.0-...-642d354 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBWriteCloser

type DBWriteCloser struct {
	BuildID   string
	Datastore datastore.Datastore
}

DBWriteCloser writes log lines to the database

func NewDBWriteCloser

func NewDBWriteCloser(buildID string, ds datastore.Datastore) *DBWriteCloser

NewDBWriteCloser creates a new database write-closer

func (*DBWriteCloser) Close

func (dbw *DBWriteCloser) Close() error

Close is a noop to fulfill the interface

func (*DBWriteCloser) Write

func (dbw *DBWriteCloser) Write(b []byte) (int, error)

Write writes a log message to the database

type DownloadWriteCloser

type DownloadWriteCloser struct {
	BuildID   string
	Datastore datastore.Datastore
	// contains filtered or unexported fields
}

DownloadWriteCloser writes log lines to the database

func NewDownloadWriteCloser

func NewDownloadWriteCloser(buildID string, ds datastore.Datastore) *DownloadWriteCloser

NewDownloadWriteCloser creates a new database write-closer

func (*DownloadWriteCloser) Close

func (dwn *DownloadWriteCloser) Close() error

Close is a noop to fulfill the interface

func (*DownloadWriteCloser) Filename

func (dwn *DownloadWriteCloser) Filename() string

Filename retrieves the filename of the snap

func (*DownloadWriteCloser) Write

func (dwn *DownloadWriteCloser) Write(b []byte) (int, error)

Write writes a log message to the database

type FlagWriteCloser

type FlagWriteCloser struct {
	Contains  string
	Datastore datastore.Datastore
	// contains filtered or unexported fields
}

FlagWriteCloser is a writer-closer that looks for a specific message

func NewFlagWriteCloser

func NewFlagWriteCloser(contains string) *FlagWriteCloser

NewFlagWriteCloser creates a new flag write-closer

func (*FlagWriteCloser) Close

func (wc *FlagWriteCloser) Close() error

Close is a noop to fulfill the interface

func (*FlagWriteCloser) Found

func (wc *FlagWriteCloser) Found() bool

Found identifies if the string has been found

func (*FlagWriteCloser) Write

func (wc *FlagWriteCloser) Write(b []byte) (int, error)

Write writes a log message to the database

Jump to

Keyboard shortcuts

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