internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package internal for project

Package internal for project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIP

func GetIP(r *http.Request) string

GetIP gets a requests IP address by reading off the forwarded-for header (for proxies) and falls back to use the remote address.

Types

type Verification

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

Verification struct

func NewVerification

func NewVerification(secret string) *Verification

NewVerification return Verification

func (*Verification) CheckToken

func (v *Verification) CheckToken(token string, p string) bool

CheckToken func

func (*Verification) GenerateToken

func (v *Verification) GenerateToken(p string) string

GenerateToken func

Jump to

Keyboard shortcuts

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