test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlightPort string

Functions

func LoopbackIPs

func LoopbackIPs() []string

func RunBasicJetStreamServer

func RunBasicJetStreamServer(ith int, ip string, routes []*url.URL) *server.Server

Types

type InMemoryFlightActionHandler

type InMemoryFlightActionHandler struct {
	TransientID     uint64
	TransientEntity []byte
	// contains filtered or unexported fields
}

func NewInMemoryFlightActionHandler

func NewInMemoryFlightActionHandler() *InMemoryFlightActionHandler

func (*InMemoryFlightActionHandler) CreateFlight

func (n *InMemoryFlightActionHandler) CreateFlight(flight string, schema *codec.Schema) error

func (*InMemoryFlightActionHandler) DeleteFlight

func (n *InMemoryFlightActionHandler) DeleteFlight(flight string) error

func (*InMemoryFlightActionHandler) GetFlightSchema

func (n *InMemoryFlightActionHandler) GetFlightSchema(flight string) (*codec.Schema, error)

func (*InMemoryFlightActionHandler) ListFlights

func (n *InMemoryFlightActionHandler) ListFlights() map[string]*codec.Schema

func (*InMemoryFlightActionHandler) PutFlightData

func (n *InMemoryFlightActionHandler) PutFlightData(flight string, json []byte) (*codec.PutResult, error)

func (*InMemoryFlightActionHandler) SerializeTransientColumnEntity

func (n *InMemoryFlightActionHandler) SerializeTransientColumnEntity(flight string) (uint64, []byte)

func (*InMemoryFlightActionHandler) SetTransientColumnEntity

func (n *InMemoryFlightActionHandler) SetTransientColumnEntity(id uint64, data []byte)

func (*InMemoryFlightActionHandler) UpdateFlightSchema

func (n *InMemoryFlightActionHandler) UpdateFlightSchema(flight string, _ uint64, schema *codec.Schema) (*codec.Schema, error)

type JSClusters

type JSClusters struct {
	Servers []*server.Server
	IPS     []string
	Local   int
}

func RunClusterJetStreamServer

func RunClusterJetStreamServer(ips []string) *JSClusters

func (*JSClusters) GetHostsAndLocal

func (jsc *JSClusters) GetHostsAndLocal() ([]string, int)

func (*JSClusters) Shutdown

func (jsc *JSClusters) Shutdown()

type NoOpFileHandler

type NoOpFileHandler struct {
}

func (*NoOpFileHandler) BaseDir

func (n *NoOpFileHandler) BaseDir() string

func (*NoOpFileHandler) OnUpload

func (n *NoOpFileHandler) OnUpload(req *codec.FileTransferRequest) error

func (*NoOpFileHandler) PrepareFlight

func (n *NoOpFileHandler) PrepareFlight(flight string) error

func (*NoOpFileHandler) RemoveFlight

func (n *NoOpFileHandler) RemoveFlight(flight string) error

func (*NoOpFileHandler) RemoveLocal

func (n *NoOpFileHandler) RemoveLocal(flight string, fid uint64) error

func (*NoOpFileHandler) SaveLocal

func (n *NoOpFileHandler) SaveLocal(flight string, fid uint64, data []byte) error

func (*NoOpFileHandler) Stop

func (n *NoOpFileHandler) Stop()

func (*NoOpFileHandler) UploadToStore

func (n *NoOpFileHandler) UploadToStore(flight string, fid uint64, data []byte, ips []string) []error

Directories

Path Synopsis
integration

Jump to

Keyboard shortcuts

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