trace

package
v0.0.0-...-bc1f52c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func (*Channel) Close

func (c *Channel) Close()

func (*Channel) GetChan

func (c *Channel) GetChan() chan Message

func (*Channel) GetID

func (c *Channel) GetID() string

type Message

type Message struct {
	ID    string
	State State
}

type State

type State int
const (
	Minage State = iota
	Create
	Validate
	Done
	Fail
)

func (State) String

func (e State) String() string

type Trace

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

func New

func New(cfg config.Trace, log *zap.Logger) *Trace

func (*Trace) CloseReader

func (t *Trace) CloseReader(ch Channel)

func (*Trace) NewReader

func (t *Trace) NewReader() *Channel

func (*Trace) Push

func (t *Trace) Push(blockID string, state State)

Jump to

Keyboard shortcuts

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