boxomon

package module
v0.0.0-...-8b8c7ff Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinnedMessageProvider

type BinnedMessageProvider struct {
	MessageBins [][]string
	ImageBins   [][]string
}

func (*BinnedMessageProvider) GetMessage

func (d *BinnedMessageProvider) GetMessage() Message

type BinnedMessageProviderConfig

type BinnedMessageProviderConfig struct {
	MessageSource MessageSourceConfig `json:"message_source"`
	ImageSource   ImageSourceConfig   `json:"image_source"`
	NBins         int                 `json:"nbins"`
}

type BoxomonConfig

type BoxomonConfig struct {
	MessageProvider MessageProviderConfig `json:"messages"`
}

type FileMessageSourceConfig

type FileMessageSourceConfig struct {
	Filepath string `json:"filepath"`
}

type GCSImageSourceConfig

type GCSImageSourceConfig struct {
	Bucket string `json:"bucket"`
	Prefix string `json:"prefix"`
}

type ImageSourceConfig

type ImageSourceConfig struct {
	GCS GCSImageSourceConfig `json:"gcs"`
}

type Message

type Message struct {
	Message  string
	ImageURL string
}

type MessageProvider

type MessageProvider interface {
	GetMessage() Message
}
var (
	MP MessageProvider
)

type MessageProviderConfig

type MessageProviderConfig struct {
	Binned BinnedMessageProviderConfig `json:"binned"`
}

type MessageSourceConfig

type MessageSourceConfig struct {
	File FileMessageSourceConfig `json:"file"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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