furo

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_furo_bigdecimal_proto protoreflect.FileDescriptor
View Source
var File_furo_link_proto protoreflect.FileDescriptor
View Source
var File_furo_meta_proto protoreflect.FileDescriptor
View Source
var File_furo_property_proto protoreflect.FileDescriptor
View Source
var File_furo_reference_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BigDecimal

type BigDecimal struct {

	// String representation of BigDecimal entity
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The integer value of the BigDecimal
	IntVal int64 `protobuf:"varint,3,opt,name=int_val,json=intVal,proto3" json:"int_val,omitempty"`
	// If zero or positive, the scale is the number of digits to the right of the decimal point. If negative, the unscaled value of the number is multiplied by ten to the power of the negation of the scale. For example, a scale of -3 means the unscaled value is multiplied by 1000.
	Scale int32 `protobuf:"varint,2,opt,name=scale,proto3" json:"scale,omitempty"`
	// contains filtered or unexported fields
}

A BigDecimal is defined by two values: an arbitrary precision integer and a 32-bit integer scale. The value of the BigDecimal is defined to be unscaledValue*10^{-scale}.

func (*BigDecimal) Descriptor deprecated

func (*BigDecimal) Descriptor() ([]byte, []int)

Deprecated: Use BigDecimal.ProtoReflect.Descriptor instead.

func (*BigDecimal) GetDisplayName

func (x *BigDecimal) GetDisplayName() string

func (*BigDecimal) GetIntVal

func (x *BigDecimal) GetIntVal() int64

func (*BigDecimal) GetScale

func (x *BigDecimal) GetScale() int32

func (*BigDecimal) ProtoMessage

func (*BigDecimal) ProtoMessage()

func (*BigDecimal) ProtoReflect

func (x *BigDecimal) ProtoReflect() protoreflect.Message

func (*BigDecimal) Reset

func (x *BigDecimal) Reset()

func (*BigDecimal) String

func (x *BigDecimal) String() string

type FieldConstraint

type FieldConstraint struct {

	// the constraint value as string, even it is a number
	Is string `protobuf:"bytes,1,opt,name=is,proto3" json:"is,omitempty"`
	// The message to display on constraint violation
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

a single fieldconstraint

func (*FieldConstraint) Descriptor deprecated

func (*FieldConstraint) Descriptor() ([]byte, []int)

Deprecated: Use FieldConstraint.ProtoReflect.Descriptor instead.

func (*FieldConstraint) GetIs

func (x *FieldConstraint) GetIs() string

func (*FieldConstraint) GetMessage

func (x *FieldConstraint) GetMessage() string

func (*FieldConstraint) ProtoMessage

func (*FieldConstraint) ProtoMessage()

func (*FieldConstraint) ProtoReflect

func (x *FieldConstraint) ProtoReflect() protoreflect.Message

func (*FieldConstraint) Reset

func (x *FieldConstraint) Reset()

func (*FieldConstraint) String

func (x *FieldConstraint) String() string

type FieldMeta

type FieldMeta struct {

	// The default value as JSON string
	Default string `protobuf:"bytes,3,opt,name=default,proto3" json:"default"`
	// A hint
	Hint string `protobuf:"bytes,2,opt,name=hint,proto3" json:"hint"`
	// The label
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label"`
	// Fieldoptions
	Options *Fieldoption `protobuf:"bytes,6,opt,name=options,proto3" json:"options"`
	// readonly
	Readonly bool `protobuf:"varint,4,opt,name=readonly,proto3" json:"readonly"`
	// repeated
	Repeated bool `protobuf:"varint,5,opt,name=repeated,proto3" json:"repeated"`
	// Put in type specific metas for your fields here
	Typespecific *any.Any `protobuf:"bytes,7,opt,name=typespecific,proto3" json:"typespecific"`
	// contains filtered or unexported fields
}

Metas for a field

func (*FieldMeta) Descriptor deprecated

func (*FieldMeta) Descriptor() ([]byte, []int)

Deprecated: Use FieldMeta.ProtoReflect.Descriptor instead.

func (*FieldMeta) GetDefault

func (x *FieldMeta) GetDefault() string

func (*FieldMeta) GetHint

func (x *FieldMeta) GetHint() string

func (*FieldMeta) GetLabel

func (x *FieldMeta) GetLabel() string

func (*FieldMeta) GetOptions

func (x *FieldMeta) GetOptions() *Fieldoption

func (*FieldMeta) GetReadonly

func (x *FieldMeta) GetReadonly() bool

func (*FieldMeta) GetRepeated

func (x *FieldMeta) GetRepeated() bool

func (*FieldMeta) GetTypespecific

func (x *FieldMeta) GetTypespecific() *any.Any

func (*FieldMeta) ProtoMessage

func (*FieldMeta) ProtoMessage()

func (*FieldMeta) ProtoReflect

func (x *FieldMeta) ProtoReflect() protoreflect.Message

func (*FieldMeta) Reset

func (x *FieldMeta) Reset()

func (*FieldMeta) String

func (x *FieldMeta) String() string

type Fieldoption

type Fieldoption struct {

	// Add flags for your field. This can be something like "searchable".
	// //The flags can be used by generators, ui components,...
	//
	Flags []string `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"`
	// a list with options, use furo.optionitem or your own
	List []*any.Any `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

Metas for a field

func (*Fieldoption) Descriptor deprecated

func (*Fieldoption) Descriptor() ([]byte, []int)

Deprecated: Use Fieldoption.ProtoReflect.Descriptor instead.

func (*Fieldoption) GetFlags

func (x *Fieldoption) GetFlags() []string

func (*Fieldoption) GetList

func (x *Fieldoption) GetList() []*any.Any

func (*Fieldoption) ProtoMessage

func (*Fieldoption) ProtoMessage()

func (*Fieldoption) ProtoReflect

func (x *Fieldoption) ProtoReflect() protoreflect.Message

func (*Fieldoption) Reset

func (x *Fieldoption) Reset()

func (*Fieldoption) String

func (x *Fieldoption) String() string

type IntegerProperty

type IntegerProperty struct {

	// Integer data part
	Data int32 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Integer type with embedded meta

func (*IntegerProperty) Descriptor deprecated

func (*IntegerProperty) Descriptor() ([]byte, []int)

Deprecated: Use IntegerProperty.ProtoReflect.Descriptor instead.

func (*IntegerProperty) GetData

func (x *IntegerProperty) GetData() int32

func (*IntegerProperty) ProtoMessage

func (*IntegerProperty) ProtoMessage()

func (*IntegerProperty) ProtoReflect

func (x *IntegerProperty) ProtoReflect() protoreflect.Message

func (*IntegerProperty) Reset

func (x *IntegerProperty) Reset()

func (*IntegerProperty) String

func (x *IntegerProperty) String() string
type Link struct {

	// link
	Href string `protobuf:"bytes,3,opt,name=href,proto3" json:"href,omitempty"`
	// method of curl
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// the relationship
	Rel string `protobuf:"bytes,1,opt,name=rel,proto3" json:"rel,omitempty"`
	// name of the service which can handle this link
	Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	// mime type
	Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

link

func (*Link) Descriptor deprecated

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetHref

func (x *Link) GetHref() string

func (*Link) GetMethod

func (x *Link) GetMethod() string

func (*Link) GetRel

func (x *Link) GetRel() string

func (*Link) GetService

func (x *Link) GetService() string

func (*Link) GetType

func (x *Link) GetType() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Meta

type Meta struct {

	// fields of meta info
	Fields map[string]*MetaField `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

meta info

func (*Meta) Descriptor deprecated

func (*Meta) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetFields

func (x *Meta) GetFields() map[string]*MetaField

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

func (x *Meta) ProtoReflect() protoreflect.Message

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type MetaField

type MetaField struct {

	// constraints for a field
	Constraints map[string]*FieldConstraint `` /* 163-byte string literal not displayed */
	// meta information of a field
	Meta *FieldMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

fields of meta info

func (*MetaField) Descriptor deprecated

func (*MetaField) Descriptor() ([]byte, []int)

Deprecated: Use MetaField.ProtoReflect.Descriptor instead.

func (*MetaField) GetConstraints

func (x *MetaField) GetConstraints() map[string]*FieldConstraint

func (*MetaField) GetMeta

func (x *MetaField) GetMeta() *FieldMeta

func (*MetaField) ProtoMessage

func (*MetaField) ProtoMessage()

func (*MetaField) ProtoReflect

func (x *MetaField) ProtoReflect() protoreflect.Message

func (*MetaField) Reset

func (x *MetaField) Reset()

func (*MetaField) String

func (x *MetaField) String() string

type NumberProperty

type NumberProperty struct {

	// data part
	Data float32 `protobuf:"fixed32,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Number type with embedded meta

func (*NumberProperty) Descriptor deprecated

func (*NumberProperty) Descriptor() ([]byte, []int)

Deprecated: Use NumberProperty.ProtoReflect.Descriptor instead.

func (*NumberProperty) GetData

func (x *NumberProperty) GetData() float32

func (*NumberProperty) ProtoMessage

func (*NumberProperty) ProtoMessage()

func (*NumberProperty) ProtoReflect

func (x *NumberProperty) ProtoReflect() protoreflect.Message

func (*NumberProperty) Reset

func (x *NumberProperty) Reset()

func (*NumberProperty) String

func (x *NumberProperty) String() string

type Optionitem

type Optionitem struct {

	// String representation
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// is the item selected
	Selected bool `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"`
	// contains filtered or unexported fields
}

Items for fieldoption.list

func (*Optionitem) Descriptor deprecated

func (*Optionitem) Descriptor() ([]byte, []int)

Deprecated: Use Optionitem.ProtoReflect.Descriptor instead.

func (*Optionitem) GetDisplayName

func (x *Optionitem) GetDisplayName() string

func (*Optionitem) GetId

func (x *Optionitem) GetId() string

func (*Optionitem) GetSelected

func (x *Optionitem) GetSelected() bool

func (*Optionitem) ProtoMessage

func (*Optionitem) ProtoMessage()

func (*Optionitem) ProtoReflect

func (x *Optionitem) ProtoReflect() protoreflect.Message

func (*Optionitem) Reset

func (x *Optionitem) Reset()

func (*Optionitem) String

func (x *Optionitem) String() string

type Property

type Property struct {

	// property code for additional settings
	Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	// data part of the property
	Data *any.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// String representation of the property
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional attribute flags e.g. is-overwritable
	Flags []string `protobuf:"bytes,6,rep,name=flags,proto3" json:"flags,omitempty"`
	// Id of the property
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional flag indicating that the property differs from the original value
	IsOverwritten bool `protobuf:"varint,7,opt,name=is_overwritten,json=isOverwritten,proto3" json:"is_overwritten,omitempty"`
	// Meta for the response
	Meta *Meta `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

TypeSpec to define property values with type information

func (*Property) Descriptor deprecated

func (*Property) Descriptor() ([]byte, []int)

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetCode

func (x *Property) GetCode() string

func (*Property) GetData

func (x *Property) GetData() *any.Any

func (*Property) GetDisplayName

func (x *Property) GetDisplayName() string

func (*Property) GetFlags

func (x *Property) GetFlags() []string

func (*Property) GetId

func (x *Property) GetId() string

func (*Property) GetIsOverwritten

func (x *Property) GetIsOverwritten() bool

func (*Property) GetMeta

func (x *Property) GetMeta() *Meta

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

func (x *Property) ProtoReflect() protoreflect.Message

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

type Reference

type Reference struct {

	// String representation of the reference
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Id of the reference
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Hateoas link
	Link *Link `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

reference

func (*Reference) Descriptor deprecated

func (*Reference) Descriptor() ([]byte, []int)

Deprecated: Use Reference.ProtoReflect.Descriptor instead.

func (*Reference) GetDisplayName

func (x *Reference) GetDisplayName() string

func (*Reference) GetId

func (x *Reference) GetId() string
func (x *Reference) GetLink() *Link

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) ProtoReflect

func (x *Reference) ProtoReflect() protoreflect.Message

func (*Reference) Reset

func (x *Reference) Reset()

func (*Reference) String

func (x *Reference) String() string

type StringOptionProperty

type StringOptionProperty struct {

	// String representation of val
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The value, Id is used to make working with data-inputs easier
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

String type to use in property

func (*StringOptionProperty) Descriptor deprecated

func (*StringOptionProperty) Descriptor() ([]byte, []int)

Deprecated: Use StringOptionProperty.ProtoReflect.Descriptor instead.

func (*StringOptionProperty) GetDisplayName

func (x *StringOptionProperty) GetDisplayName() string

func (*StringOptionProperty) GetId

func (x *StringOptionProperty) GetId() string

func (*StringOptionProperty) ProtoMessage

func (*StringOptionProperty) ProtoMessage()

func (*StringOptionProperty) ProtoReflect

func (x *StringOptionProperty) ProtoReflect() protoreflect.Message

func (*StringOptionProperty) Reset

func (x *StringOptionProperty) Reset()

func (*StringOptionProperty) String

func (x *StringOptionProperty) String() string

type StringProperty

type StringProperty struct {

	// data part
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

String type to use in property

func (*StringProperty) Descriptor deprecated

func (*StringProperty) Descriptor() ([]byte, []int)

Deprecated: Use StringProperty.ProtoReflect.Descriptor instead.

func (*StringProperty) GetData

func (x *StringProperty) GetData() string

func (*StringProperty) ProtoMessage

func (*StringProperty) ProtoMessage()

func (*StringProperty) ProtoReflect

func (x *StringProperty) ProtoReflect() protoreflect.Message

func (*StringProperty) Reset

func (x *StringProperty) Reset()

func (*StringProperty) String

func (x *StringProperty) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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