https://github.com/stym06/rebuf Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} stym06 / rebuf Public * Notifications You must be signed in to change notification settings * Fork 0 * Star 36 Rebuf is a library that can be used as a WAL which can be used for logging and later replaying the data bytes during downstream service failure License MIT license 36 stars 0 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights stym06/rebuf This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 15 Commits .github/workflows .github/ workflows rebuf rebuf utils utils .gitignore .gitignore LICENSE LICENSE README.md README.md example.go example.go go.mod go.mod View all files Repository files navigation * README * MIT license rebuf Go rebuf is a Golang implementation of WAL (Write Ahead||After Logging) which can also be used to log data bytes during a downstream service issue which can later be replayed on-demand Features * Create and replay log data on any filesystem. * Lightweight and easy to use. * Efficient storage and retrieval of log data. Installation 1. Clone the repository: git clone https://github.com/stym06/ rebuf.git 2. Navigate to the project directory: cd rebuf 3. Install the necessary dependencies by running: go mod download Usage example.go rebufOptions := &rebuf.RebufOptions{ LogDir: "/Users/data", MaxLogSize: 50, MaxSegments: 2, } //Init Rebuf rebuf, err := rebuf.Init(rebufOptions) if err != nil { fmt.Println("Error during Rebuf creation: " + err.Error()) } //Write Bytes err = rebuf.Write([]byte("Hello world")) //Replay rebuf.Replay(writeToStdout) func writeToStdout(data []byte) error { fmt.Println(string(data)) return nil } License This project is licensed under the MIT License. See the LICENSE file for more information. Contact Information If you have any questions or concerns, please feel free to reach out to the author on GitHub: @stym06. About Rebuf is a library that can be used as a WAL which can be used for logging and later replaying the data bytes during downstream service failure Topics go wal Resources Readme License MIT license Activity Stars 36 stars Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages 0 No packages published Languages * Go 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.