auth

package
v2.4.4+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppName

func AppName(remoteIP string) (string, error)

AppName return the app name which ip is given ip. the return error is nil only when appname is found

func Init

func Init(s store.Store, ctx context.Context, ip string, act bool) error

Init function initialize the data needed by auth.

func IsSuper

func IsSuper(remoteIP string) bool

IsSuper check if the ip belong to the super apps

func Pass

func Pass(remoteIP string, appname string) bool

Pass check if the given ip having limits to visit data for given app

Types

This section is empty.

Jump to

Keyboard shortcuts

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