postauth

package
v0.0.0-...-5dcd16a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 0 Imported by: 7

Documentation

Overview

Authenticated Posting

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRank

type AuthRank uint8
const (
	ARReader AuthRank = iota
	ARUser
	ARModerator
	ARFeeder

	AR_MAX
)

func (AuthRank) TestStatus

func (rank AuthRank) TestStatus(status byte) (ok bool)

type GroupHeadCacheAuthed

type GroupHeadCacheAuthed struct {
	Base GroupHeadCacheWithAuth
	Rank AuthRank
}

Implements newspolyglot.GroupHeadCache

func (*GroupHeadCacheAuthed) GroupHeadFilter

func (a *GroupHeadCacheAuthed) GroupHeadFilter(groups [][]byte) ([][]byte, error)

Filters the list "groups" removing those groups that eighter not exist or they can't be posted to.

type GroupHeadCacheWithAuth

type GroupHeadCacheWithAuth interface {
	// Filters the list "groups" removing those groups that
	// eighter not exist or they can't be posted to.
	//
	// rank specifies the poster's authentication rank.
	GroupHeadFilterWithAuth(rank AuthRank, groups [][]byte) ([][]byte, error)
}

Cacheable Group-Head

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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