publish

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publish

type Publish struct {
	// 要推送的目录
	Publishes PublishesMap

	// 分组
	PublishGroups PublishGroupsMap
}

*

  • 推送 *
  • @create 2022-1-1
  • @author deatil

func Instance

func Instance() *Publish

单例

func New

func New() *Publish

构造函数

func (*Publish) AddPublishGroup

func (this *Publish) AddPublishGroup(group string, paths map[string]string) *Publish

AddPublishGroup

func (*Publish) EnsurePublishArrayInitialized

func (this *Publish) EnsurePublishArrayInitialized(class string) *Publish

初始化

func (*Publish) GetStructName

func (this *Publish) GetStructName(s any) (name string)

反射获取结构体名称

func (*Publish) PathsForProviderAndGroup

func (this *Publish) PathsForProviderAndGroup(provider string, group string) map[string]string

PathsForProviderAndGroup

func (*Publish) PathsForProviderOrGroup

func (this *Publish) PathsForProviderOrGroup(provider string, group string) map[string]string

PathsForProviderOrGroup

func (*Publish) PathsToPublish

func (this *Publish) PathsToPublish(provider string, group string) map[string]string

PathsToPublish

func (*Publish) Publish

func (this *Publish) Publish(class any, paths map[string]string, group string) *Publish

添加推送

func (*Publish) PublishableGroups

func (this *Publish) PublishableGroups() []string

PublishableGroups

func (*Publish) PublishableProviders

func (this *Publish) PublishableProviders() []string

PublishableProviders

type PublishGroupsMap

type PublishGroupsMap = map[string]map[string]string

分组

type PublishesMap

type PublishesMap = map[string]map[string]string

要推送的目录

Jump to

Keyboard shortcuts

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