sentinel

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commiter

type Commiter interface {
	Add(ctx context.Context, cid cid.Cid) error
}

Commiter is responsible for adding commits at the head of the topic it serves.

type ErrorValidation

type ErrorValidation struct {
	Kind ErrorValidationKind
	Err  error
}

func (ErrorValidation) Error

func (e ErrorValidation) Error() string

func (ErrorValidation) Unwrap

func (e ErrorValidation) Unwrap() error

type ErrorValidationKind

type ErrorValidationKind uint
const (
	ErrorValidationKindUnknown ErrorValidationKind = iota
	ErrorValidationKindNotFound
	ErrorValidationKindInternal
	ErrorValidationKindIncorrectContent
)

type Pinner

type Pinner interface {
	Pin(ctx context.Context, cid cid.Cid) error
}

Pinner is responsible for pinning message - thus replicating it and making accessible to external consumers

type Validator

type Validator interface {
	Validate(ctx context.Context, cid cid.Cid) error
}

Validator validates message contents in sentinel. It should be implemented by topic owner.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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