domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheKey

type CacheKey struct {
	URL *url.URL
}

func NewCacheKey

func NewCacheKey(ru string) (*CacheKey, error)

func (*CacheKey) Key

func (a *CacheKey) Key() Key

func (*CacheKey) RequestDest

func (a *CacheKey) RequestDest() string

type Client

type Client interface {
	GetTestCase(url string) ([]TestCase, error)
}

type ContestName

type ContestName int
const (
	Atcoder ContestName = iota
)

func ContestNameString

func ContestNameString(s string) (ContestName, error)

ContestNameString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ContestNameValues

func ContestNameValues() []ContestName

ContestNameValues returns all values of the enum

func (ContestName) IsAContestName

func (i ContestName) IsAContestName() bool

IsAContestName returns "true" if the value is listed in the enum definition. "false" otherwise

func (ContestName) String

func (i ContestName) String() string

type HttpClient

type HttpClient interface {
	Get(u string) (*HttpResponse, error)
}

type HttpResponse

type HttpResponse struct {
	Body []byte
}

type HttpResponseRepository

type HttpResponseRepository interface {
	Get(k Key, value interface{}) (*HttpResponse, error)
	Save(k Key, value interface{}) error
}

type Key

type Key string

func (Key) String

func (a Key) String() string

type TestCase

type TestCase struct {
	Content string
	Exp     string
}

Jump to

Keyboard shortcuts

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