user

package
v0.0.0-...-811c2de Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	ProfileText string
	Pronouns    string
	Website     string
}

func NewProfile

func NewProfile(in bson.M) Profile

Create a new Profile object from a mongo result.

func (*Profile) RenderDisplayContent

func (c *Profile) RenderDisplayContent(content interface{}) (string, error)

Render the profile using markdown TODO Users may need additional fields in the future.

func (*Profile) RenderIndexContent

func (c *Profile) RenderIndexContent(content interface{}) (string, error)

Simply return the profile text content.

func (*Profile) Safe

func (c *Profile) Safe() bool

Since users are managed through markdown, they are a safe content type.

Jump to

Keyboard shortcuts

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