impl

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilFetchResponse = fmt.Errorf("nil fetch resp")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(serverAddr string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) FetchTimestamp

func (c *Client) FetchTimestamp(ctx context.Context) (uint64, error)

func (*Client) TargetAddr

func (c *Client) TargetAddr() string

type Server

type Server struct {
	Port int

	Done chan struct{}
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int, oracle oracle.Oracle, store *topo.Store) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) Start

func (s *Server) Start() error

type Stub

type Stub struct {
	oraclepb.UnimplementedOracleServer
	// contains filtered or unexported fields
}

func (*Stub) Fetch

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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