File: jewelry.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.30.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 662,428 kB
  • sloc: java: 16,875; makefile: 432; sh: 175
file content (51 lines) | stat: -rw-r--r-- 1,553 bytes parent folder | download | duplicates (3)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
package main

type jewelryItemKind string

const (
	jewelryItemKindPackage   jewelryItemKind = "Package"
	jewelryItemKindStruct                    = "Struct"
	jewelryItemKindInterface                 = "Interface"
	jewelryItemKindFunc                      = "Function"
	jewelryItemKindMethod                    = "Method"
	jewelryItemKindField                     = "Field"
	jewelryItemKindEnum                      = "Enum"
	jewelryItemKindUnion                     = "Union"
	jewelryItemKindOther                     = "Other"
)

type breadCrumb struct {
	Name string          `json:"name"`
	Kind jewelryItemKind `json:"kind"`
}

type typeSignature struct {
	Signature string `json:"signature"`
	Location  string `json:"location"`
}

type jewelryParam struct {
	jewelryItem
	IsOptional      bool
	IsReadonly      bool
	IsEventProperty bool
}

type jewelryItem struct {
	Package     string          `json:"package"`
	Name        string          `json:"name"`
	Summary     string          `json:"summary"`
	Type        jewelryItemKind `json:"type"`
	Members     []jewelryItem   `json:"members"`
	BreadCrumbs []breadCrumb    `json:"breadcrumbs"`
	Signature   typeSignature   `json:"typeSignature"`
	Tags        []string        `json:"tags"`
	Params      []jewelryParam  `json:"params"`
	Returns     string          `json:"returns"`
	// // optional (used only for JewelryOperations)
	// // since no out-of-box thing in Go for union types
	// Input string
	// // optional. see above.
	// Output string
	OtherBlocks map[string]string `json:"otherBlocks"`
}