Documentation
¶
Index ¶
Constants ¶
View Source
const (
CompatibilityProp = "compatibility"
)
Variables ¶
View Source
var MajorVerRegExp = regexp.MustCompile("^v(0|[1-9][0-9]*)$")
View Source
var Properties map[string]string
View Source
var SemVerRegExp = regexp.MustCompile("^v((0|[1-9][0-9]*)\\.){2}(0|[1-9][0-9]*)$")
Functions ¶
func IsMajorVer ¶ added in v0.3.0
func IsSemVer ¶
IsSemVer checks if the given version string is valid form of semantic version and return true when it is valid.
func ListProperties ¶ added in v0.3.0
func ListProperties() []string
Types ¶
type ClientError ¶
type ClientError []error
type Compatibility ¶
type Compatibility struct {
IsCompatible bool `json:"is_compatible"`
}
type Error ¶
type Error struct {
*ServerError
ClientError
}
func NewError ¶
func NewError(serverError *ServerError, clientError []error) *Error
type Schema ¶
type Schema struct {
Id int64 `json:"id"`
Subject string `json:"subject"`
Version SemVer `json:"version"`
Definition string `json:"schema"`
}
func (Schema) MarshalJSON ¶
func (*Schema) UnmarshalJSON ¶
type SemVer ¶
SemVer is the version that represents compatibility between schemas manged in typebook.
type ServerError ¶
func (*ServerError) Error ¶
func (se *ServerError) Error() string
Click to show internal directories.
Click to hide internal directories.