config

package
v0.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Driver        string
	Source        string
	AutoMigration bool
}

type Config

type Config struct {
	Backend *Backend
	Server  *Server
}

type GrpcServer

type GrpcServer struct {
	Network string
	Addr    string
	Timeout time.Duration
}

type HttpServer

type HttpServer struct {
	Network string
	Addr    string
	Timeout time.Duration
}

type Instance

type Instance struct {
	ID       string
	Name     string
	Version  string
	Metadata map[string]string
}

type Server

type Server struct {
	Instance *Instance
	Http     *HttpServer
	Grpc     *GrpcServer
}

Jump to

Keyboard shortcuts

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