gaudit

package module
v0.0.0-...-481f9f6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 3 Imported by: 0

README ΒΆ

logo

πŸ† Gaudit

Welcome to Gaudit, an elegant and powerful auditing package for Go applications! With Gaudit, you can effortlessly track changes, log activities, and maintain a detailed audit trail of your data.

go versionΒ 

πŸ“¦ Features

  • Comprehensive Auditing: Automatically log changes for insert and update operations.
  • Flexible Hooks: Use pre-defined hooks or create your own to customize auditing behavior.
  • Rich Metadata: Capture essential details such as user actions, timestamps, and IP addresses.
  • Easy Integration: Seamlessly integrate with your existing Go applications.
  • Extensible: Extend the package with your own custom functionalities.

πŸš€ Installation

To get started with Gaudit, install it using Go modules:

go get github.com/its-own/gaudit

πŸ“– Usage

Here's a quick example of how to use Gaudit in your application:

package main

import (
    "context"
    _ "github.com/its-own/gaudit"
)

func main() {
    // write your own code
}

πŸ”§ Configuration

Customize Gaudit to fit your needs. You can configure logging settings, output formats, and more in the config.go file.

// Example of setting configuration
gaudit.SetConfig(gaudit.Config{
    LogLevel: "debug",
    // other configurations...
})

πŸ“š Documentation

coming soon

πŸ§ͺ Testing

Gaudit comes with a robust set of tests to ensure stability. Run the tests with:

go test ./...

πŸŽ‰ Contributing

We welcome contributions! If you'd like to contribute to Gaudit, please fork the repo and create a pull request. For larger changes, please open an issue first to discuss.

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/my-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some feature')
  5. Push to the branch (git push origin feature/my-feature)
  6. Open a Pull Request

πŸ“§ Contact

For any questions, suggestions, or feedback, feel free to reach out via Issues or contact us directly at razibulhasan.mithu.com.

🀝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Thank you for considering Gaudit for your auditing needs! We hope it enhances your application's capabilities. Happy coding! πŸš€

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

func New ΒΆ

func New() *hooks.DefaultHooks

Types ΒΆ

This section is empty.

Directories ΒΆ

Path Synopsis
db
internal

Jump to

Keyboard shortcuts

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