treediagram

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BallotBoxThumbnailURL = "https://cdn.discordapp.com/attachments/320660733740449792/728375524090576996/ff85a1aae50ad48506e3275656768e89.png"
View Source
var CountdownURL = "https://countdown.treediagram.xyz"

Functions

func FormatClientError

func FormatClientError(err error) (*contract.Response, error)

func FormatNewPollReply

func FormatNewPollReply(poll *votingpb.Poll) *contract.Message

func FormatParseError

func FormatParseError(err error) (*contract.Response, error)

Types

type AnipollRequest

type AnipollRequest struct {
	CreatePollRequest *votingpb.CreatePollRequest
	Season            string
	Year              string
}

func ParseCreateAnipollRequest

func ParseCreateAnipollRequest(request contract.Request) (AnipollRequest, error)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(logger zerolog.Logger, votingClient votingpb.VotingClient, anilistClient anilist.Anilist, addr string) Handler

func (Handler) CreateAnipoll

func (h Handler) CreateAnipoll(request contract.Request) (*contract.Response, error)

func (Handler) Start

func (h Handler) Start() error

func (Handler) Stop

func (h Handler) Stop() error

type ParseError

type ParseError struct {
	Message string
}

func (ParseError) Error

func (e ParseError) Error() string

Jump to

Keyboard shortcuts

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