memeng

package
v0.0.0-...-9ca37e5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	passwordHasher passhash.PasswordHasher,
	defaultRootPassword string,
	preallocSessions int,
	preallocPosts int,
) (engiface.Engine, error)

New initializes a new in-memory engine implementation

Types

type Post

type Post struct {
	// Post stores the actual post data
	Post api.Post

	// Reactions links the corresponding reactions in chronological order
	Reactions []*PostReaction

	// Archived indicates whether this post is archived or not
	Archived bool
}

Post defines the post in-memory storage representations

type PostReaction

type PostReaction struct {
	// Reaction stores the actual post reaction data
	Reaction api.PostReaction

	// Archived indicates whether this post reaction is archived or not
	Archived bool
}

PostReaction defines the post reaction in-memory storage representations

type UserAccount

type UserAccount struct {
	Profile api.User

	// Password stores this user's password in a secure hashed form
	Password string
}

UserAccount defines a user account in-memory storage representation

Jump to

Keyboard shortcuts

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