fans

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gopher

type Gopher interface {
	// VerifyExists verifies if a post for the given ID and creator name exists
	VerifyExists(postID int64, creatorName string) (bool, error)

	// GetPostDetails gets the details of the given post by the given creator
	// Returns PostNotFoundErr if the post cannot be found
	GetPostDetails(postID int64, creatorName string) (*model.Post, error)
}

type PostNotFoundErr

type PostNotFoundErr struct {
	PostID      int64
	CreatorName string
}

func (*PostNotFoundErr) Error

func (e *PostNotFoundErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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