parser

package
v0.0.0-...-e11b04c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser

func New

func New() Parser

New returns a new instance of Parser

func (*Parser) Parse

func (p *Parser) Parse(message string) (*memo.Memo, error)

Parse takes a message and returns a memo with the fields extracted

func (*Parser) SetClock

func (p *Parser) SetClock(clock clock.Clock)

SetClock allows injection of a benbjohnson/clock clock.Clock interface, for mocking within tests.

Jump to

Keyboard shortcuts

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