livelog

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config config.Config
}

func DefaultConfig

func DefaultConfig() *Config

type Line

type Line struct {
	Pos     int64  `json:"pos"`
	Time    int64  `json:"time"`
	Message string `json:"message"`
}

type Livelog

type Livelog interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Create(context.Context, int64) error
	Delete(context.Context, int64) error
	Write(context.Context, int64, *Line) error
	Tail(context.Context, int64) (<-chan *Line, <-chan error)
}

func New

func New(_ context.Context, cfg *Config) Livelog

Jump to

Keyboard shortcuts

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