client

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Ip        string   `json:"ip,omitempty" datastore:",noindex"`
	UserAgent string   `json:"userAgent,omitempty" datastore:",noindex"`
	Referer   string   `json:"referer,omitempty" datastore:",noindex"`
	Language  string   `json:"language,omitempty"`
	Country   string   `json:"country,omitempty"`
	Region    string   `json:"region,omitempty"`
	City      string   `json:"city,omitempty"`
	GeoPoint  GeoPoint `json:"geoPoint,omitempty"`
}

func New

func New(c *gin.Context) Client

func (Client) Blacklisted

func (c Client) Blacklisted() bool

type GeoPoint

type GeoPoint struct {
	Lat float64 `json:"lat"`
	Lng float64 `json:"lng"`
}

Jump to

Keyboard shortcuts

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