post

package
v0.0.0-...-61222a5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBResult

type DBResult struct {
	ID uuid.UUID
}

func (DBResult) ToPost

func (res DBResult) ToPost() post.Post

type Model

type Model struct {
	ID string
}

type Repository

type Repository struct {
	DB *bun.DB
	// contains filtered or unexported fields
}

func ProvideRepository

func ProvideRepository(config *config.PostgresqlConfig, db *bun.DB) *Repository

func (*Repository) FindByTopic

func (r *Repository) FindByTopic(ctx context.Context, id uuid.UUID) ([]post.Post, error)

Jump to

Keyboard shortcuts

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