apiserver

package
v0.0.0-...-53273dc Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(config *Config) error

Start ...

func TestServer_HandleCreate

func TestServer_HandleCreate(t *testing.T)

func TestServer_HandleDelete

func TestServer_HandleDelete(t *testing.T)

func TestServer_HandleInfo

func TestServer_HandleInfo(t *testing.T)

func TestServer_HandleRetrieveAll

func TestServer_HandleRetrieveAll(t *testing.T)

func TestServer_HandleRetrieveByID

func TestServer_HandleRetrieveByID(t *testing.T)

func TestServer_HandleUpdate

func TestServer_HandleUpdate(t *testing.T)

Types

type Config

type Config struct {
	BindAddr          string
	DatabaseConnector *DBConnector
	DatabaseURL       string
}

Config ...

func NewConfig

func NewConfig() *Config

NewConfig ...

type DBConnector

type DBConnector struct {
	Host     string
	Port     string
	User     string
	Password string
	DBName   string
	SSLMode  string
}

DBConnector ...

func NewDBConnector

func NewDBConnector() *DBConnector

NewDBConnector ...

Jump to

Keyboard shortcuts

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