dao

package
v0.0.0-...-446b837 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 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 ChallengeStore

type ChallengeStore interface {
	GetAllChallenges() ([]*models.Challenge, error)
	GetChallengeByName(name string) (*models.Challenge, error)
	UpdateChallengeAccepted(name string) (*models.Challenge, error)
}

type DAO

type DAO interface {
	ChallengeStore
}

type PostgresBuilder

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

func (PostgresBuilder) Build

func (pb PostgresBuilder) Build() *dao

func (PostgresBuilder) GetAllChallenges

func (d PostgresBuilder) GetAllChallenges() ([]*models.Challenge, error)

func (PostgresBuilder) GetChallengeByName

func (d PostgresBuilder) GetChallengeByName(name string) (*models.Challenge, error)

func (PostgresBuilder) SetConnectionString

func (pb PostgresBuilder) SetConnectionString(connectionString string) PostgresBuilder

func (PostgresBuilder) UpdateChallengeAccepted

func (d PostgresBuilder) UpdateChallengeAccepted(name string) (*models.Challenge, error)

Jump to

Keyboard shortcuts

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