api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package classification User API.

The purpose of this service is to provide an application that is using plain go code to define an API

Host: localhost
Version: 0.0.1

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreePort

func GetFreePort() (int, error)

func Start

func Start(ctx context.Context, e *errgroup.Group, port int, readTimeout int, writeTimeout int, idleTimeout int)

Types

type ContainerCreateParam

type ContainerCreateParam struct {
	ContainerName string            `json:"container_name"`
	ImageId       string            `json:"image_id"`
	Cmd           string            `json:"cmd"`
	Envs          map[string]string `json:"envs"`
	Ports         []int             `json:"ports"`
}

Jump to

Keyboard shortcuts

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