core

package
Version: v0.0.0-...-0f20b9f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcement

type Announcement interface {
	Text() string
	ShouldAnnounce() bool
	ProjectName() string
}

Announcement represents a message to be shouted out

type Announcer

type Announcer interface {
	Announce(Announcement) error
}

Announcer provides a simple interface to announce things

type Parser

type Parser interface {
	MatchHeaders(map[string][]string) bool
	Parse(map[string][]string, []byte) (Announcement, error)
}

Parser provides an interface that allows to identify if a request can be parsed, and then will extract the announcement if there is any.

Source Files

Jump to

Keyboard shortcuts

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