detect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEnvFiles

func ParseEnvFiles(dir string) map[string]string

Types

type APIResult

type APIResult struct {
	BaseURL  string `toml:"base_url,omitempty"`
	Spec     string `toml:"spec,omitempty"`
	Auth     string `toml:"auth,omitempty"`
	AuthType string `toml:"auth_type,omitempty"`
}

type DatabaseResult

type DatabaseResult struct {
	Source string `toml:"source"`
	Type   string `toml:"type"`
}

type Detector

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

func New

func New(dir string) *Detector

func (*Detector) Detect

func (d *Detector) Detect() *Result

type GRPCResult

type GRPCResult struct {
	Addr       string `toml:"addr,omitempty"`
	ProtoDir   string `toml:"proto_dir,omitempty"`
	Reflection bool   `toml:"reflection"`
}

type Result

type Result struct {
	Database *DatabaseResult `toml:"database,omitempty"`
	API      *APIResult      `toml:"api,omitempty"`
	GRPC     *GRPCResult     `toml:"grpc,omitempty"`
}

Jump to

Keyboard shortcuts

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