varlog

module
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0

README

Varlog

ci codecov

Varlog is a strongly consistent distributed log storage. It enables many distributed systems to leverage total-ordered logs to support transactional event processing with high performance, and simplify the building the complex distributed systems.

Installation

With Go module support, add the following import to your code.

import "github.com/kakao/varlog"

Usage

// Open the log.
vlog, _ := varlog.Open(context.Background(), clusterID, mrAddrs)

// Write records to the log.
vlog.Append(context.Background(), topicID, [][]byte{[]byte("hello"), []byte("varlog")})

// Read records from the log.
closer, _ := vlog.Subscribe(context.Background(), topicID, begin, end, func(logEntry varlogpb.LogEntry, err error) {
    fmt.Println(logEntry)
})
defer closer()

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2022 Kakao Corp. http://www.kakaocorp.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd
benchmark command
mrtool command
varlogadm command
varlogcli command
varlogctl command
varlogmr command
varlogsn command
internal
admin
Code generated by MockGen.
Code generated by MockGen.
admin/mrmanager
Code generated by MockGen.
Code generated by MockGen.
admin/snmanager
Code generated by MockGen.
Code generated by MockGen.
admin/snwatcher
Code generated by MockGen.
Code generated by MockGen.
admin/stats
Code generated by MockGen.
Code generated by MockGen.
reportcommitter
Code generated by MockGen.
Code generated by MockGen.
storagenode/client
Code generated by MockGen.
Code generated by MockGen.
pkg
mrc
Code generated by MockGen.
Code generated by MockGen.
rpc
util/netutil
Package netutil provides helper functions for network.
Package netutil provides helper functions for network.
varlog
Code generated by MockGen.
Code generated by MockGen.
proto
admpb
Code generated by MockGen.
Code generated by MockGen.
mrpb/mock
Code generated by MockGen.
Code generated by MockGen.
snpb/mock
Code generated by MockGen.
Code generated by MockGen.
tests
ee
it

Jump to

Keyboard shortcuts

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