facebook

package
v0.0.0-...-92b9631 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TableName is the table used to store the data
	TableName = "trinacia"
)

Variables

View Source
var (
	// ErrorMissingUserID missing user ID
	ErrorMissingUserID = errors.New("Missing User ID")
	// ErrorMissingFacebook nil pointer reference to facebook
	ErrorMissingFacebook = errors.New("Nil pointer reference passed as Facebook entitie")
	// ErrorMissingFacebookAccessToken missing facebook access token
	ErrorMissingFacebookAccessToken = errors.New("Missing facebook access token")
)

Functions

This section is empty.

Types

type Storage

type Storage interface {
	StoreFacebook(userID string, f *entities.Facebook) error
	GetFacebook(userID string) (*entities.Facebook, error)
}

Storage interface to get information from database

func NewFacebook

func NewFacebook(sess *session.Session) Storage

NewFacebook isntanciates a session dynamo session to query information about users' Facebook accounts

Jump to

Keyboard shortcuts

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