config

package
v0.0.0-...-717c0ad Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// 应用标识
	Id string `default:"${ID=.}" json:"id,omitempty"`
	// 密钥
	Secret string `default:"${SECRET}" json:"secret,omitempty"`
}

type Card

type Card struct {
	// 模板
	Template string `default:"${CARD_TEMPLATE}" json:"template,omitempty"`
}

type Notfound

type Notfound struct {
	// 接收用户标识
	Id string `default:"${DRONE_REPO_OWNER}" json:"id,omitempty"`
	// 接收用户类型
	Type string `default:"user" json:"type,omitempty" validate:"oneof=open user union email chat"`
}

func (*Notfound) Userid

func (n *Notfound) Userid() string

func (*Notfound) Usertype

func (n *Notfound) Usertype() string

type User

type User struct {
	// 接收用户标识
	Id string `default:"${DRONE_COMMIT_AUTHOR=${USERID}}" json:"id,omitempty"`
	// 接收用户类型
	Type string `default:"${USERTYPE=user}" json:"type,omitempty" validate:"oneof=open user union email chat"`
}

func (*User) Userid

func (u *User) Userid() string

func (*User) Usertype

func (u *User) Usertype() string

Jump to

Keyboard shortcuts

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