api

package
v0.0.0-...-a41a74f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package api Directory API. Version: 0.0.1

swagger:meta

Index

Constants

View Source
const DefaultListenAddress = "localhost:7777"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

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

func NewApiService

func NewApiService(params ServiceParams) *ApiService

func (*ApiService) Start

func (a *ApiService) Start() (chan struct{}, error)

type ArkeoContracts

type ArkeoContracts []*db.ArkeoContract

swagger:model ArkeoContracts

type ArkeoProviders

type ArkeoProviders []*db.ArkeoProvider

swagger:model ArkeoProviders

type Health

type Health struct {
	Overall string
}

type InternalServerError

type InternalServerError struct {
	Message string `json:"message"`
}

Contains info about a 500 Internal Server Error response swagger:model InternalServerError

type ServiceParams

type ServiceParams struct {
	ListenAddr string      `mapstructure:"listen_addr" json:"listen_addr"`
	StaticDir  string      `mapstructure:"static_dir" json:"static_dir"`
	DBConfig   db.DBConfig `mapstructure:"db" json:"db"`
}

Jump to

Keyboard shortcuts

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