types

package
v0.0.0-...-032a771 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSchema = &Schema{
	Subject: "",
	Name:    "",
	Doc:     "",
	Fields:  []Field{{Name: "", Type: "", Doc: ""}},
}

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Doc  string `json:"doc"`
}

type Schema

type Schema struct {
	Id      string  `json:"id,omitempty"`
	Subject string  `json:"subject"`
	Name    string  `json:"name"`
	Doc     string  `json:"doc"`
	Fields  []Field `json:"fields"`
}

func (*Schema) SetId

func (s *Schema) SetId(id string)

Jump to

Keyboard shortcuts

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