option

package
v0.0.0-...-61cd4c6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DogsVsCatsProviderOpt

type DogsVsCatsProviderOpt struct {
}

type DogsVsCatsServiceOpt

type DogsVsCatsServiceOpt struct {
	Endpoint           string `mapstructure:"endpoint"`
	Bucket             string `mapstructure:"bucket"`
	AccessKeyID        string `mapstructure:"access_key_id"`
	AccessKeySecret    string `mapstructure:"access_key_secret"`
	RegionID           string `mapstructure:"region_id"`
	RoleArn            string `mapstructure:"role_arn"`
	RoleSessionName    string `mapstructure:"role_session_name"`
	UploadPathPrefix   string `mapstructure:"upload_path_prefix"`
	ClassifyPathPrefix string `mapstructure:"classify_path_prefix"`
	ModelPath          string `mapstructure:"model_path"`
}

type LogOpt

type LogOpt struct {
	Level    string `mapstructure:"level"`
	Filename string `mapstructure:"filename"`
	Encoder  string `mapstructure:"encoder"`
}

LogOpt opt

type Option

type Option struct {
	LogOpt      LogOpt      `mapstructure:"log_opt"`
	ServiceOpt  ServiceOpt  `mapstructure:"service_opt"`
	ProviderOpt ProviderOpt `mapstructure:"provider_opt"`
	// contains filtered or unexported fields
}

Options program config

func New

func New() (*Option, error)

func (*Option) String

func (o *Option) String() string

type ProviderOpt

type ProviderOpt struct {
	DogsVsCatsProviderOpt DogsVsCatsProviderOpt `mapstructure:"dogs_vs_cats_provider_opt"`
}

type ServiceOpt

type ServiceOpt struct {
	DogsVsCatsServiceOpt DogsVsCatsServiceOpt `mapstructure:"dogs_vs_cats_service_opt"`
}

Jump to

Keyboard shortcuts

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