whitelist

package
v0.0.0-...-8ac8335 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(db *sql.DB) *chi.Mux

NewRouter returns a mux router

func NewWhitelistRepo

func NewWhitelistRepo(db *sql.DB) *whitelistRepo

NewWhitelistRepo returns a struct that implements whitelist repo with a database connection

Types

type WhitelistRepo

type WhitelistRepo interface {
	ListIP() ([]string, error)
}

WhitelistRepo is the interface to implements in order to manage whitelist address

Jump to

Keyboard shortcuts

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