oracle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyOracle

type DummyOracle struct{}

func (DummyOracle) Close

func (o DummyOracle) Close() error

func (DummyOracle) FetchTimestamp

func (o DummyOracle) FetchTimestamp(_ context.Context) (uint64, error)

type Factory

type Factory interface {
	GetOracle() Oracle
}

type Oracle

type Oracle interface {
	FetchTimestamp(ctx context.Context) (uint64, error)
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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