-
Notifications
You must be signed in to change notification settings - Fork 157
/
templates.go
38 lines (33 loc) · 1.18 KB
/
templates.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package config
// Templates holds the configurations to override the default
// templates used to render the schema and the docs.
type Templates struct {
MD MD `yaml:"md,omitempty"`
Dot Dot `yaml:"dot,omitempty"`
PUML PUML `yaml:"puml,omitempty"`
Mermaid Mermaid `yaml:"mermaid,omitempty"`
}
// MD holds the paths to the markdown template files.
// If populated the files are used to override the default ones.
type MD struct {
Index string `yaml:"index,omitempty"`
Table string `yaml:"table,omitempty"`
}
// Dot holds the paths to the dot template files.
// If populated the files are used to override the default ones.
type Dot struct {
Schema string `yaml:"schema,omitempty"`
Table string `yaml:"table,omitempty"`
}
// PUML holds the paths to the PlantUML template files.
// If populated the files are used to override the default ones.
type PUML struct {
Schema string `yaml:"schema,omitempty"`
Table string `yaml:"table,omitempty"`
}
// Mermaid holds the paths to the Mermaid template files.
// If populated the files are used to override the default ones.
type Mermaid struct {
Schema string `yaml:"schema,omitempty"`
Table string `yaml:"table,omitempty"`
}