http

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package http provides the client transport for Reunion DB queries over http.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

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

Transport is used by Reunion protocol clients to send queries to the Reunion DB service over HTTP.

func NewTransport

func NewTransport(url string) *Transport

NewTransport creates a new Transport given a URL string.

func (*Transport) CurrentEpochs

func (k *Transport) CurrentEpochs() ([]uint64, error)

CurrentEpochs returns the valid epochs the transport provides

func (*Transport) CurrentSharedRandoms

func (k *Transport) CurrentSharedRandoms() ([][]byte, error)

CurrentSharedRandoms returns the valid shared randoms the transport provides

func (*Transport) Query

func (k *Transport) Query(command commands.Command) (commands.Command, error)

Query sends the command to the destination Reunion DB service over HTTP.

Jump to

Keyboard shortcuts

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