cs2loghttp

package module
v0.0.0-...-fdf6dee Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 7 Imported by: 0

README

CS2 LOG HTTP

Author

Shugo Kawamura
Github : FlowingSPDG
Twitter : @FlowingSPDG / @FlowingSPDG_EN

About

This is HTTP Log parser middleware for Gin. Parses log line from CS2 Server,and allows you to do something by those datas.

Usage(Example)

  • Go to examples folder,and go run main.go .
  • Enable logs by CS Server side. logaddress_add_http "http://YOUR-GIN-Server:3090/csgolog"; mp_logdetail 3; log on;
  • You'll get std log output which describes informations in log line.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogHandler

type LogHandler struct {
	// contains filtered or unexported fields
}

LogHandler is a handler for cs2-log HTTP.

func NewLogHandler

func NewLogHandler(h handler) LogHandler

NewLogHandler returns a new LogHandler. This function has side effect to override log line prefix.

func (*LogHandler) Handle

func (l *LogHandler) Handle() gin.HandlerFunc

Handle returns a gin.HandlerFunc to handle cs2-log HTTP.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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