sqlstore

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlacklistRepository added in v0.0.14

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

BlacklistRepository is responsible for black list.

func (*BlacklistRepository) FindByIPv4 added in v0.0.14

func (r *BlacklistRepository) FindByIPv4(ipv4 string) (*model.BlackListItem, error)

FindByIPv4 returns full information about the blacklisted record method by unique id.

type Store

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

func New

func New(host string, port int, user, password, dbname, sslmode string) (*Store, error)

func (*Store) Blacklist added in v0.0.14

func (s *Store) Blacklist() store.BlackListRepository

func (*Store) Token

func (s *Store) Token() store.TokenRepository

type TokenRepository

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

TokenRepository is responsible for tokens.

func (*TokenRepository) FindByID

func (r *TokenRepository) FindByID(id string) (*model.Token, error)

FindByID returns full information about the auth method by uniqnue id.

Jump to

Keyboard shortcuts

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