service

package
v0.0.0-...-afb99dd Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: AGPL-3.0 Imports: 36 Imported by: 0

README

Microservice architecture

in progress...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

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

func NewACL

func NewACL(config ACLConfig) *ACL

func (*ACL) Start

func (a *ACL) Start() error

func (*ACL) Stop

func (a *ACL) Stop() error

type ACLConfig

type ACLConfig struct {
	Name string

	Domain string
	IP     string

	CAAddress      string
	CAAccess       string
	CASecret       string
	CACertFilename string

	RegistryAddress string
	Port            int

	Database   string
	WorkingDir string
}

type Access

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

func NewAccess

func NewAccess(config AccessConfig) *Access

func (*Access) Start

func (a *Access) Start() error

type AccessConfig

type AccessConfig struct {
	Name            string
	Domain          string
	IP              string
	CAAddress       string
	CAAccess        string
	CASecret        string
	CACertFilename  string
	RegistryAddress string
	WorkingDir      string
}

type Config

type Config struct {
	Dev          bool
	TLS          bool
	TLSAuto      bool
	CertFilename string
	KeyFilename  string

	Domains    []string
	FSRootDir  string
	WorkingDir string
	WebDir     string
	AdminInfo  string
	DSN        string
}

Config contains info to configure an instance of Server

type FileAccesses

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

func NewSources

func NewSources(config FileAccessesConfig) *FileAccesses

func (*FileAccesses) Start

func (s *FileAccesses) Start() error

func (*FileAccesses) Stop

func (s *FileAccesses) Stop() error

type FileAccessesConfig

type FileAccessesConfig struct {
	Name string

	Domain string
	IP     string

	CAAddress      string
	CAAccess       string
	CASecret       string
	CACertFilename string

	RegistryAddress string
	Port            int

	Database   string
	WorkingDir string
}

type Files

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

func NewFiles

func NewFiles(config FilesConfig) *Files

func (*Files) Start

func (f *Files) Start() error

type FilesConfig

type FilesConfig struct {
	Name            string
	Domain          string
	IP              string
	CAAddress       string
	CAAccess        string
	CASecret        string
	CACertFilename  string
	RegistryAddress string
	WorkingDir      string
}

type Front

type Front struct {
	Errors chan error
	// contains filtered or unexported fields
}

func NewFront

func NewFront(config FrontConfig) *Front

func (*Front) Start

func (f *Front) Start() error

func (*Front) Stop

func (f *Front) Stop() error

type FrontConfig

type FrontConfig struct {
	Dev             bool
	Name            string
	AdminAuth       string
	Domains         []string
	IP              string
	CAPort          int
	RegistryPort    int
	Port            int
	WorkingDir      string
	Database        string
	TLS             bool
	TLSAuto         bool
	TLSCertFilename string
	TLSKeyFilename  string
}

type Objects

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

func NewObjects

func NewObjects(config ObjectsConfig) *Objects

func (*Objects) Start

func (o *Objects) Start() error

type ObjectsConfig

type ObjectsConfig struct {
	Name            string
	Domain          string
	IP              string
	CAAddress       string
	CAAccess        string
	CASecret        string
	CACertFilename  string
	RegistryAddress string
	WorkingDir      string
	Database        string
}

type Server

type Server struct {
	Errors chan error
	// contains filtered or unexported fields
}

Server embeds an Ome data store it also exposes an API server

func New

func New(config Config) *Server

New is a server constructor

func (*Server) Start

func (s *Server) Start() error

Start starts API server

func (*Server) Stop

func (s *Server) Stop()

Stop stops API server

Jump to

Keyboard shortcuts

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