istoragecas

package module
v0.0.0-...-70465ea Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 9 Imported by: 0

README

airs-istoragecas

  • Implementation of airs-istorage
  • Idea borrowed from Project Kaiser storage

Testing

Cassandra instance must be running on 127.0.0.1:9042

Documentation

Index

Constants

View Source
const LoMask = (1 << PartitionBits) - 1

LoMask mask of `low` value

View Source
const PartitionBits = 16

PartitionBits s.e.

View Source
const PartitionSize = 1 << PartitionBits

PartitionSize s.e.

Variables

This section is empty.

Functions

func CrackInt64

func CrackInt64(value int64) (hi int32, lo int32)

CrackInt64 returns low and hi part of value

func Declare

func Declare(service Service)

Declare s.e.

func UncrackInt64

func UncrackInt64(hi int32, low int32) (original int64)

UncrackInt64 s.e.

Types

type Service

type Service struct {
	Host              string
	Port              int
	Keyspace          string
	ReplicationFactor int
}

Service s.e.

func (*Service) Start

func (s *Service) Start(ctx context.Context) (context.Context, error)

Start s.e.

func (*Service) Stop

func (s *Service) Stop(ctx context.Context)

Stop s.e.

Jump to

Keyboard shortcuts

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