tanmatsu

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Tanmatsu (端末)

Terminal for Eribo.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCode

func ErrorCode(err error) string

ErrorCode returns the code of the root error, if available. Otherwise returns internal.

func HTTPStatus

func HTTPStatus(c string) int

func NewServer

func NewServer(imageStore imageStore, version, issuer string, secret []byte) *server

Types

type Error

type Error struct {
	Code    string
	Message string
	Op      string
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

type Image

type Image struct {
	ID      int64     `json:"id"`
	URL     string    `json:"url"`
	Done    bool      `json:"done"`
	Kuid    int       `json:"kuid"`
	Created time.Time `json:"created"`
	Player  string    `json:"player"`
	Channel string    `json:"channel"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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