LogBeetle

module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0

README

LogBeetle

GitHub go.mod Go version GitHub Tag build status License Go Report Card

Installation

git clone https://github.com/reggiepy/LogBeetle.git
cd LogBeetle
go mod tidy

Usage

generate swagger UI

swag init -g cmd/LogBeetle/main.go

runs

go run github.com/reggiepy/LogBeetle/cmd/LogBeetle server

build

SET CGO_ENABLED=0
SET GOOS=windows
SET GOARCH=amd64
go env -w CGO_ENABLED=0 GOOS=windows  GOARCH=amd64
go build github.com/reggiepy/LogBeetle/cmd/LogBeetle
go build -ldflags="-s -w" github.com/reggiepy/LogBeetle/cmd/LogBeetle

build linux

SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
# go env -w CGO_ENABLED=0 GOOS=linux GOARCH=amd64
go build github.com/reggiepy/LogBeetle/cmd/LogBeetle
go build -ldflags="-s -w" github.com/reggiepy/LogBeetle/cmd/LogBeetle

Architecture

sequenceDiagram
    participant Client
    participant HTTP
    participant NSQ
    participant LogBeetle
    Client-->>HTTP: Client send request to send log as a message
    loop HealthCheck
        LogBeetle->>LogBeetle: Consumers lookup nsq topic message
    end
    HTTP-->>NSQ: Send log to nsq topic
    Note right of LogBeetle: Consumer to handle log by nsq topic
    NSQ-->>LogBeetle: LogBeetle Consumer write log to file

Directories

Path Synopsis
cmd
cli
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
examples
pkg
web
api

Jump to

Keyboard shortcuts

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