lara

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MocksPath       string            `yaml:"mocks-path"`
	ServerConfig    ServerConfig      `yaml:"server"`
	TokenGenerator  TokenGenerator    `yaml:"token-generator"`
	Watcher         bool              `yaml:"watcher"`
	RegexExpression map[string]string `yaml:"regex"`
	Date            map[string]string `yaml:"date"`
}

func PrepareConfig

func PrepareConfig(host string, port int, watcher bool, mocksPath string, configFilePath string) (Config, error)

type ServerConfig

type ServerConfig struct {
	Port int    `yaml:"port"`
	Host string `yaml:"host"`
}

type TokenGenerator

type TokenGenerator struct {
	TokenServers TokenServers
}

func (*TokenGenerator) UnmarshalYAML

func (b *TokenGenerator) UnmarshalYAML(unmarshal func(interface{}) error) error

type TokenServerDetail

type TokenServerDetail struct {
	Type         string `yaml:"type"`
	TokenUrl     string `yaml:"token-url"`
	ClientID     string `yaml:"client-id"`
	ClientSecret string `yaml:"client-secret"`
	Username     string `yaml:"username"`
	Password     string `yaml:"password"`
	Scope        string `yaml:"scope"`
}

type TokenServers

type TokenServers map[string]TokenServerDetail

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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