mirror of
https://github.com/go-gitea/gitea
synced 2024-11-04 13:19:17 +01:00
7224cfc578
* Upgrade xorm to v1.2.2 * Change the Engine interface to match xorm v1.2.2
41 lines
650 B
Go
Vendored
41 lines
650 B
Go
Vendored
package encoder
|
|
|
|
import "context"
|
|
|
|
type OptionFlag uint8
|
|
|
|
const (
|
|
HTMLEscapeOption OptionFlag = 1 << iota
|
|
IndentOption
|
|
UnorderedMapOption
|
|
DebugOption
|
|
ColorizeOption
|
|
ContextOption
|
|
)
|
|
|
|
type Option struct {
|
|
Flag OptionFlag
|
|
ColorScheme *ColorScheme
|
|
Context context.Context
|
|
}
|
|
|
|
type EncodeFormat struct {
|
|
Header string
|
|
Footer string
|
|
}
|
|
|
|
type EncodeFormatScheme struct {
|
|
Int EncodeFormat
|
|
Uint EncodeFormat
|
|
Float EncodeFormat
|
|
Bool EncodeFormat
|
|
String EncodeFormat
|
|
Binary EncodeFormat
|
|
ObjectKey EncodeFormat
|
|
Null EncodeFormat
|
|
}
|
|
|
|
type (
|
|
ColorScheme = EncodeFormatScheme
|
|
ColorFormat = EncodeFormat
|
|
)
|