Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormID = "id" FormTag = "tag" FormUntag = "untag" FormPermission = "permission" )
View Source
const MaxThumbSize = 320
Variables ¶
View Source
var CookieName = "posts-settings"
Functions ¶
Types ¶
type Int64Set ¶
type Int64Set map[int64]struct{}
Int64Set represents an unordered set of int64s.
func (Int64Set) MarshalJSON ¶
func (*Int64Set) UnmarshalJSON ¶
type State ¶
type State struct { Permission smolboard.Permission `json:"permission"` // -1 == skip Selections Int64Set `json:"selections"` Tags StringSet `json:"tags"` }
func (State) MarshalCookie ¶
type StringSet ¶
type StringSet map[string]struct{}
StringSet represents an unordered set of strings.
func (StringSet) MarshalJSON ¶
func (*StringSet) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.