mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

* Add Cassandra writer implementation Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add cassandra service with version and metrics endpoints Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add test for cassandra writer Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Exclude api.go files from code coverage Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add readme file for cassandra writer Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add docker compose configuration for cassandra writer Add README file. Add docker compose configuration. Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add gocql as project dependency Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Fix init script for cassandra in docker-compose Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add testifies require subpackage Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
30 lines
720 B
Go
30 lines
720 B
Go
// Copyright 2016 The Snappy-Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !appengine
|
|
// +build gc
|
|
// +build !noasm
|
|
|
|
package snappy
|
|
|
|
// emitLiteral has the same semantics as in encode_other.go.
|
|
//
|
|
//go:noescape
|
|
func emitLiteral(dst, lit []byte) int
|
|
|
|
// emitCopy has the same semantics as in encode_other.go.
|
|
//
|
|
//go:noescape
|
|
func emitCopy(dst []byte, offset, length int) int
|
|
|
|
// extendMatch has the same semantics as in encode_other.go.
|
|
//
|
|
//go:noescape
|
|
func extendMatch(src []byte, i, j int) int
|
|
|
|
// encodeBlock has the same semantics as in encode_other.go.
|
|
//
|
|
//go:noescape
|
|
func encodeBlock(dst, src []byte) (d int)
|