Documentation ¶ Index ¶ type Client func NewClient() *Client func (c *Client) Run(ctx context.Context, code string, language string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } Client wraps the official Docker SDK client. func NewClient ¶ func NewClient() *Client NewClient initializes and returns a verified Docker client. It performs a connection check (Ping) upon initialization. If the Docker daemon is unreachable, the function panics to prevent the service from starting in a broken state (Fail-Fast). func (*Client) Run ¶ func (c *Client) Run(ctx context.Context, code string, language string) (string, error) Run executes the provided code within an ephemeral Docker container. It enforces resource limits (memory) and context cancellation. Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.