users

package
v0.0.0-...-db24ddd Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KeyPrefix = "user-"

Variables

This section is empty.

Functions

func HandlePost

func HandlePost(post *model.Post, mm *mmclient.MMClient, c cache.Cache) error

func SetupUsers

func SetupUsers(mm *mmclient.MMClient, c cache.Cache) error

Types

type User

type User struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Message   string `json:"message"`
	SyndFeed  string `json:"synd-feed"`
	FeedCount int    `json:"feed-count"`
}

func GetUser

func GetUser(username string, c cache.Cache) (User, bool, error)

func GetUsers

func GetUsers(c cache.Cache) ([]User, bool, error)

func UpdateUser

func UpdateUser(user User, c cache.Cache) (User, bool)

Jump to

Keyboard shortcuts

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