manager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveLogManager

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

LiveLogManager manges opened logs

func NewLiveLogManager

func NewLiveLogManager(db *gorm.DB) *LiveLogManager

NewLiveLogManager with gorm database

func (*LiveLogManager) Close

func (m *LiveLogManager) Close(id int64) error

Close log

func (*LiveLogManager) Create

func (m *LiveLogManager) Create() (core.Log, error)

Create new log in database and open streaming

func (*LiveLogManager) Open

func (m *LiveLogManager) Open(id int64) (core.Log, error)

Open log with given id

Jump to

Keyboard shortcuts

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