logs

package
v0.0.0-...-2d83bcd Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NullOpaEvent         = opalogs.EventV1{}
	ErrorIDAlreadyExists = errors.New("DecisionID already exists")
	ErrorIDNotFound      = errors.New("DecisionID not found")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Create

func (client *Client) Create(log opalogs.EventV1) error

func (*Client) CreateMultiple

func (client *Client) CreateMultiple(logs []opalogs.EventV1) error

func (*Client) Read

func (client *Client) Read(id DecisionID) (opalogs.EventV1, error)

func (*Client) ReadAll

func (client *Client) ReadAll() []opalogs.EventV1

type DecisionID

type DecisionID = string

Jump to

Keyboard shortcuts

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