sessions

package
v0.0.0-...-cbce884 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(userID, ip, userAgent string, config *config.AppConfig) *models.Session

CreateSession creates a new session object after looking up geoip

func GetGeoIP

func GetGeoIP(ip, apiKey string) (string, error)

GetGeoIP retrieves location information of the client ip from IP Stack

Types

This section is empty.

Jump to

Keyboard shortcuts

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