types

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExistingService

func IsExistingService(services []Service, service string) (bool, int)

func NewDate

func NewDate() string

func ToYamlString

func ToYamlString(specs *Specs) ([]byte, error)

Types

type Service

type Service struct {
	Name        string   `yaml:"name"`
	Port        int      `yaml:"port"`
	Endpoints   []string `yaml:"endpoints"`
	Middlewares []string `yaml:"middlewares"`
}

func NewService

func NewService(name string, port int, endpoints []string, middelwares []string) *Service

type Specs

type Specs struct {
	Version string `yaml:"version"`
	Project struct {
		Name       string `yaml:"name"`
		Created_at string `yaml:"created_at"`
	}
	Services []Service
}

func NewSpecs

func NewSpecs(name string, services []Service, databases []Service) *Specs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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