model

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 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 AlertConfig added in v0.0.2

type AlertConfig struct {
	Telegram *TelegramConfig `json:"telegram,omitempty"`
}

type Cache

type Cache struct {
	Status  int
	Headers map[string][]string
	Body    []byte
}

type Config

type Config struct {
	Memcached  MemcachedConfig `json:"memcached,omitempty"`
	HashKey    HashKey         `json:"hashkey,omitempty"`
	Alert      AlertConfig     `json:"alert,omitempty"`
	ForceCache ForceCache      `json:"forceCache,omitempty"`
	Env        string          `json:"env,omitempty"`
}

type Enable

type Enable struct {
	Enable bool `json:"enable,omitempty"`
}

type ForceCache added in v0.0.7

type ForceCache struct {
	Enable      bool `json:"enable,omitempty"`
	ExpiredTime int  `json:"expiredTime,omitempty"`
}

type HashKey

type HashKey struct {
	Method Enable        `json:"method,omitempty"`
	Header HeaderHashKey `json:"header,omitempty"`
	Body   Enable        `json:"body,omitempty"`
}

type HeaderHashKey

type HeaderHashKey struct {
	Enable       bool   `json:"enable,omitempty"`
	Fields       string `json:"fields,omitempty"`
	IgnoreFields string `json:"ignoreFields,omitempty"`
}

type MemcachedConfig

type MemcachedConfig struct {
	Address string `json:"address,omitempty"`
}

type TelegramConfig added in v0.0.2

type TelegramConfig struct {
	ChatID string `json:"chatId,omitempty"`
	Token  string `json:"token,omitempty"`
}

Jump to

Keyboard shortcuts

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