core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

func New

func New(db db.DB) Core

func (Core) AddKarma

func (c Core) AddKarma(ctx context.Context, userID string) (models.KarmaCount, error)

AddKarma increments the karma for a user

func (Core) GetKarma

func (c Core) GetKarma(ctx context.Context, userID string) (models.KarmaCount, error)

Directories

Path Synopsis
Package models provides the structs exposed by the core package, but put in an independent package to break the dependency cycle between `core` and `db`
Package models provides the structs exposed by the core package, but put in an independent package to break the dependency cycle between `core` and `db`

Jump to

Keyboard shortcuts

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