sandbox

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

README

实现一个数据库服务

- 

进度

- 0%

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
}

func NewApplication

func NewApplication() *Application

func (*Application) Exec

func (sand *Application) Exec(ctx context.Context, in base.Input) (out base.Output, err error)

type Input

type Input struct {
	SourceCode string
}

func (*Input) Deserialization

func (in *Input) Deserialization(source []byte) (err error)

func (*Input) From

func (in *Input) From(source base.IPayload) (err error)

func (*Input) Serialization

func (in *Input) Serialization() (target []byte, err error)

func (*Input) To

func (in *Input) To(target base.IPayload) (err error)

type Output

type Output struct {
	Data string
}

func (*Output) Deserialization

func (out *Output) Deserialization(source []byte) (err error)

func (*Output) From

func (out *Output) From(source base.IPayload) (err error)

func (*Output) Serialization

func (out *Output) Serialization() (target []byte, err error)

func (*Output) To

func (out *Output) To(target base.IPayload) (err error)

type StringIO

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

func (*StringIO) Read

func (so *StringIO) Read(p []byte) (n int, err error)

func (*StringIO) String

func (so *StringIO) String() string

func (*StringIO) Write

func (so *StringIO) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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