tarus_io

package
v0.0.0-...-5379b69 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Statics = &StaticRouter{}

Functions

func NopCIO

func NopCIO(c cio.Creator) *nopCio

func NopCIO2

func NopCIO2(c cio.Creator, r JudgeChecker) *nopCio

Types

type ChannelFactory

type ChannelFactory = func(inp, oup string) (Factory, error)

type Factory

type Factory interface {
	AsCreator() cio.Creator
	JudgeChecker
}

func NewStd

func NewStd(inp io.Reader, oup io.Writer, erp io.Writer) Factory

type JudgeChecker

type JudgeChecker interface {
	GetJudgeResult() ([]byte, error)
	GetJudgeStatus(b []byte) (tarus.JudgeStatus, error)
}

type Router

type Router interface {
	MakeIOChannel(iop string) (ChannelFactory, error)
}

type StaticRouter

type StaticRouter struct{}

func (*StaticRouter) MakeIOChannel

func (s *StaticRouter) MakeIOChannel(iop string) (ChannelFactory, error)

func (*StaticRouter) RouteFilesystem

func (s *StaticRouter) RouteFilesystem(fs *url.URL) (ChannelFactory, error)

func (*StaticRouter) RouteMemory

func (s *StaticRouter) RouteMemory(_ *url.URL) ChannelFactory

Jump to

Keyboard shortcuts

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