Documentation ¶
Index ¶
- Constants
- func GetLogger(ctx context.Context) log.Interface
- func IsCancelled(ctx context.Context) bool
- func NotifyAbouStart(ch chan ProcessOutput)
- type ArgsUnpacker
- type Box
- type BoxConfig
- type Boxes
- type ConnectionHandler
- type Decoder
- type Dispatcher
- type Downstream
- type Encoder
- type Process
- type ProcessOutput
- type Profile
Constants ¶
View Source
const (
BoxesTag = "isolate.boxes.tag"
)
Variables ¶
This section is empty.
Functions ¶
func IsCancelled ¶
IsCancelled checks whether context is cancelled
func NotifyAbouStart ¶
func NotifyAbouStart(ch chan ProcessOutput)
Types ¶
type ArgsUnpacker ¶
type ArgsUnpacker interface {
Unpack(in interface{}, out ...interface{}) error
}
type ConnectionHandler ¶
type ConnectionHandler struct {
// contains filtered or unexported fields
}
ConnectionHandler provides method to handle accepted connection for Listener
func NewConnectionHandler ¶
func NewConnectionHandler(ctx context.Context) (*ConnectionHandler, error)
NewConnectionHandler creates new ConnectionHandler
func (*ConnectionHandler) HandleConn ¶
func (h *ConnectionHandler) HandleConn(conn io.ReadWriteCloser)
type Decoder ¶
type Decoder interface {
Decode(interface{}) error
}
Decoder decodes messages from Cocaine-runtime
type Dispatcher ¶
type Dispatcher interface {
Handle(msg *message) (Dispatcher, error)
}
Dispatcher handles incoming messages and keeps the state of the channel
type Downstream ¶
type Encoder ¶
type Encoder interface {
Encode(interface{}) error
}
Encoder sends replies to the Cocaine-runtime
type Process ¶
type Process interface { Output() <-chan ProcessOutput Kill() error }
type ProcessOutput ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.