config

package
v0.0.0-...-96490c8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTo

func DecodeTo(b []byte)

Types

type MavenConfig

type MavenConfig struct {
	Cache      string                 `` /* 176-byte string literal not displayed */
	Central    []string               `yaml:"central" default:"[\"https://repo1.maven.org/maven2/\"]"  dc:"Mirrors中央仓库"`
	Mirror     []string               `` /* 222-byte string literal not displayed */
	Repository map[string]*Repository `yaml:"repository" default:"[{\"Id\":\"public\",\"Name\":\"mirror\"}]"`
}

func GetConfig

func GetConfig() *MavenConfig

GetConfig 获取maven配置的资源文件信息

type Repository

type Repository struct {
	Id    string `yaml:"id" dc:"仓库ID"`
	Name  string `yaml:"name" dc:"仓库名字, 随意,唯一即可"`
	Mode  int    `yaml:"mode" default:"6" dc:"模式,默认为6,参数描述:0 无效 2 仅可写 4 仅可读 6 可读写"`
	Auth  bool   `yaml:"auth" default:"true" dc:"是否鉴权, 默认鉴权,参数描述:true 鉴权 false不鉴权"`
	Cache bool   `yaml:"cache" default:"true" dc:"是否缓存镜像文件, 默认缓存,参数描述:true 缓存 false不缓存"`
}

Jump to

Keyboard shortcuts

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