specSpec

package
v1.39.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_descriptor_descriptor_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Enum added in v1.33.0

type Enum struct {

	// This is the Typename
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" yaml:"type"`
	// the type description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description" yaml:"description"`
	// Type lifecycle information, setting deprecated to true will log a warning when running furo
	Lifecycle *Lifecycle `protobuf:"bytes,7,opt,name=lifecycle,proto3" json:"lifecycle" yaml:"lifecycle"`
	// information for the proto generator, should be removed for the client spec
	XProto *Enumproto `protobuf:"bytes,4,opt,name=__proto,json=Proto,proto3" json:"__proto" yaml:"__proto"`
	// Value of a enum
	// Custom extension
	// original was: Values map[string]int32 `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
	Values *orderedmap.OrderedMap `` /* 154-byte string literal not displayed */

	// Custom extension
	//original was: Extensions map[string]*anypb.Any `protobuf:"bytes,6,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Extensions *orderedmap.OrderedMap `json:"extensions,omitempty"  yaml:"extensions,omitempty"`
	// contains filtered or unexported fields
}

Defines a type in the furo spec

func (*Enum) Descriptor deprecated added in v1.33.0

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

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetDescription added in v1.33.0

func (x *Enum) GetDescription() string

func (*Enum) GetExtensions added in v1.33.0

func (x *Enum) GetExtensions() *orderedmap.OrderedMap

func (*Enum) GetLifecycle added in v1.33.0

func (x *Enum) GetLifecycle() *Lifecycle

func (*Enum) GetType added in v1.33.0

func (x *Enum) GetType() string

func (*Enum) GetValues added in v1.33.0

func (x *Enum) GetValues() *orderedmap.OrderedMap

func (*Enum) GetXProto added in v1.33.0

func (x *Enum) GetXProto() *Enumproto

func (*Enum) ProtoMessage added in v1.33.0

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect added in v1.33.0

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

func (*Enum) Reset added in v1.33.0

func (x *Enum) Reset()

func (*Enum) String added in v1.33.0

func (x *Enum) String() string

type Enumproto added in v1.33.0

type Enumproto struct {

	// the package this type belogs to
	Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package" yaml:"package"`
	// the target proto file for this type
	Targetfile string `protobuf:"bytes,3,opt,name=targetfile,proto3" json:"targetfile" yaml:"targetfile"`
	// needed imports like [ "spec/descriptor.proto", "google/protobuf/empty.proto" ]
	Imports []string `protobuf:"bytes,2,rep,name=imports,proto3" json:"imports" yaml:"imports"`
	// Proto options Todo: find a solution for boolean options
	Options map[string]string `` /* 160-byte string literal not displayed */
	// Allow aliases on enums (different names same value)
	AllowAlias bool `protobuf:"varint,5,opt,name=allow_alias,json=allowAlias,proto3" json:"allow_alias" yaml:"allow_alias"`
	// contains filtered or unexported fields
}

Main proto for a type

func (*Enumproto) Descriptor deprecated added in v1.33.0

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

Deprecated: Use Enumproto.ProtoReflect.Descriptor instead.

func (*Enumproto) GetAllowAlias added in v1.33.0

func (x *Enumproto) GetAllowAlias() bool

func (*Enumproto) GetImports added in v1.33.0

func (x *Enumproto) GetImports() []string

func (*Enumproto) GetOptions added in v1.33.0

func (x *Enumproto) GetOptions() map[string]string

func (*Enumproto) GetPackage added in v1.33.0

func (x *Enumproto) GetPackage() string

func (*Enumproto) GetTargetfile added in v1.33.0

func (x *Enumproto) GetTargetfile() string

func (*Enumproto) ProtoMessage added in v1.33.0

func (*Enumproto) ProtoMessage()

func (*Enumproto) ProtoReflect added in v1.33.0

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

func (*Enumproto) Reset added in v1.33.0

func (x *Enumproto) Reset()

func (*Enumproto) String added in v1.33.0

func (x *Enumproto) String() string

type Field

type Field struct {

	// the field type, https://developers.google.com/protocol-buffers/docs/proto3#scalar
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" yaml:"type"`
	// the field description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"`
	// information for the proto generator, like number, type
	XProto *Fieldproto  `protobuf:"bytes,6,opt,name=__proto,json=Proto,proto3" json:"__proto" yaml:"__proto"`
	XUi    *Uiextension `protobuf:"bytes,7,opt,name=__ui,json=Ui,proto3" json:"__ui" yaml:"__ui"`
	// meta information for the client, like label, default, repeated, options...
	Meta *FieldMeta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta" yaml:"meta"`

	// constraints for a field, like min{}, max{}, step{}
	Constraints map[string]*FieldConstraint `` /* 165-byte string literal not displayed */
	// Custom extension
	//original was: Extensions map[string]*anypb.Any `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Extensions *orderedmap.OrderedMap `json:"extensions,omitempty"  yaml:"extensions,omitempty"`
	// contains filtered or unexported fields
}

Defines a field in the furo spec

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetConstraints

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

func (*Field) GetDescription

func (x *Field) GetDescription() string

func (*Field) GetExtensions

func (x *Field) GetExtensions() *orderedmap.OrderedMap

func (*Field) GetMeta

func (x *Field) GetMeta() *FieldMeta

func (*Field) GetType

func (x *Field) GetType() string

func (*Field) GetXProto

func (x *Field) GetXProto() *Fieldproto

func (*Field) GetXUi

func (x *Field) GetXUi() *Uiextension

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) 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, this must match with the data structure of your type
	Default string `protobuf:"bytes,3,opt,name=default,proto3" json:"default"`
	// Informative text which can be displayed on the ui
	Placeholder string `protobuf:"bytes,8,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	// A hint
	Hint string `protobuf:"bytes,2,opt,name=hint,proto3" json:"hint"`
	// Informative text which can be displayed on the ui
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label"`
	// Fieldoptions
	Options *Fieldoption `protobuf:"bytes,6,opt,name=options,proto3" json:"options" yaml:"options"`
	// Marks the field as readonly. Used for validations.
	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
	// original was: 	Typespecific *anypb.Any `protobuf:"bytes,7,opt,name=typespecific,proto3" json:"typespecific,omitempty"`
	Typespecific *map[string]interface{} `protobuf:"bytes,7,opt,name=typespecific,proto3" json:"typespecific" yaml:"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) GetPlaceholder

func (x *FieldMeta) GetPlaceholder() string

func (*FieldMeta) GetReadonly

func (x *FieldMeta) GetReadonly() bool

func (*FieldMeta) GetRepeated

func (x *FieldMeta) GetRepeated() bool

func (*FieldMeta) GetTypespecific

func (x *FieldMeta) GetTypespecific() *map[string]interface{}

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" yaml:"flags"`
	// a list with options, use descriptor.Optionitem or your own
	// original was 	List []*anypb.Any `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	List []*map[string]interface{} `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty" yaml:"list"`
	// contains filtered or unexported fields
}

Options like flags and list

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() []*map[string]interface{}

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 Fieldproto

type Fieldproto struct {

	// The field numbers are used to identify your fields in the message binary format, and should not be changed once your message type is in use.
	Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number"`
	// Assign field to a protobuf oneof group.
	Oneof string `protobuf:"bytes,3,opt,name=oneof,proto3" json:"oneof,omitempty" yaml:"oneof,omitempty"`
	// contains filtered or unexported fields
}

Proto options for a field

func (*Fieldproto) Descriptor deprecated

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

Deprecated: Use Fieldproto.ProtoReflect.Descriptor instead.

func (*Fieldproto) GetNumber

func (x *Fieldproto) GetNumber() int32

func (*Fieldproto) GetOneof

func (x *Fieldproto) GetOneof() string

func (*Fieldproto) ProtoMessage

func (*Fieldproto) ProtoMessage()

func (*Fieldproto) ProtoReflect

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

func (*Fieldproto) Reset

func (x *Fieldproto) Reset()

func (*Fieldproto) String

func (x *Fieldproto) String() string

type Lifecycle

type Lifecycle struct {

	// Is this version deprecated
	Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"`
	// Inform about the replacement here, if you have one
	Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

Lifecycle information for a type or a service

func (*Lifecycle) Descriptor deprecated

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

Deprecated: Use Lifecycle.ProtoReflect.Descriptor instead.

func (*Lifecycle) GetDeprecated

func (x *Lifecycle) GetDeprecated() bool

func (*Lifecycle) GetInfo

func (x *Lifecycle) GetInfo() string

func (*Lifecycle) ProtoMessage

func (*Lifecycle) ProtoMessage()

func (*Lifecycle) ProtoReflect

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

func (*Lifecycle) Reset

func (x *Lifecycle) Reset()

func (*Lifecycle) String

func (x *Lifecycle) String() string

type Optionitem

type Optionitem struct {

	// Id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// String representation
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,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 Queryparam

type Queryparam struct {

	// constraints for a field, like min{}, max{}, step{}. Not used at the moment
	Constraints map[string]*FieldConstraint `` /* 163-byte string literal not displayed */
	// the field description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// meta information for the client, like label, default, repeated, options...
	Meta *FieldMeta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// the field type, https://developers.google.com/protocol-buffers/docs/proto3#scalar
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Defines a queryparam field (for rpc type)

func (*Queryparam) Descriptor deprecated

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

Deprecated: Use Queryparam.ProtoReflect.Descriptor instead.

func (*Queryparam) GetConstraints

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

func (*Queryparam) GetDescription

func (x *Queryparam) GetDescription() string

func (*Queryparam) GetMeta

func (x *Queryparam) GetMeta() *FieldMeta

func (*Queryparam) GetType

func (x *Queryparam) GetType() string

func (*Queryparam) ProtoMessage

func (*Queryparam) ProtoMessage()

func (*Queryparam) ProtoReflect

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

func (*Queryparam) Reset

func (x *Queryparam) Reset()

func (*Queryparam) String

func (x *Queryparam) String() string

type Rpc

type Rpc struct {

	// the service description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Request and response types for the service
	Data *Servicereqres `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// This data is needed for...
	Deeplink *Servicedeeplink `protobuf:"bytes,5,opt,name=deeplink,proto3" json:"deeplink,omitempty"`
	// Query params, it is recomended to use string types
	// original was: Query map[string]*Queryparam `protobuf:"bytes,4,rep,name=query,proto3" json:"query,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Query *orderedmap.OrderedMap `` /* 151-byte string literal not displayed */
	// RPC name https://developers.google.com/protocol-buffers/docs/proto3#services
	RpcName string `protobuf:"bytes,2,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"  yaml:"rpc_name,omitempty"`
	// Custom extension
	// original was: Extensions map[string]*anypb.Any `protobuf:"bytes,6,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Extensions *orderedmap.OrderedMap `json:"extensions,omitempty"  yaml:"extensions,omitempty"`
	// contains filtered or unexported fields
}

Defines a rpc for a service

func (*Rpc) Descriptor deprecated

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

Deprecated: Use Rpc.ProtoReflect.Descriptor instead.

func (*Rpc) GetData

func (x *Rpc) GetData() *Servicereqres
func (x *Rpc) GetDeeplink() *Servicedeeplink

func (*Rpc) GetDescription

func (x *Rpc) GetDescription() string

func (*Rpc) GetExtensions

func (x *Rpc) GetExtensions() *orderedmap.OrderedMap

func (*Rpc) GetQuery

func (x *Rpc) GetQuery() *orderedmap.OrderedMap

func (*Rpc) GetRpcName

func (x *Rpc) GetRpcName() string

func (*Rpc) ProtoMessage

func (*Rpc) ProtoMessage()

func (*Rpc) ProtoReflect

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

func (*Rpc) Reset

func (x *Rpc) Reset()

func (*Rpc) String

func (x *Rpc) String() string

type Service

type Service struct {

	// Describe the rpcs or so
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"`
	// The version number, use semver
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"`
	// Describe the rpcs or so
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description" yaml:"description"`
	// todo replace with lc type
	Lifecycle *Lifecycle `protobuf:"bytes,4,opt,name=lifecycle,proto3" json:"lifecycle" yaml:"lifecycle"`
	// information for the proto generator, should be removed for the client spec
	XProto *Typeproto `protobuf:"bytes,5,opt,name=__proto,json=Proto,proto3" json:"__proto" yaml:"__proto"`
	// RPCs for the service
	// Original entry:  Services map[string]*Rpc `protobuf:"bytes,6,rep,name=services,proto3" json:"services,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Services *orderedmap.OrderedMap `` /* 163-byte string literal not displayed */
	// Custom extension
	//original was: Extensions map[string]*anypb.Any `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Extensions *orderedmap.OrderedMap `json:"extensions,omitempty"  yaml:"extensions,omitempty"`
	// contains filtered or unexported fields
}

Defines a service

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetDescription

func (x *Service) GetDescription() string

func (*Service) GetExtensions

func (x *Service) GetExtensions() *orderedmap.OrderedMap

func (*Service) GetLifecycle

func (x *Service) GetLifecycle() *Lifecycle

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetServices

func (x *Service) GetServices() *orderedmap.OrderedMap

func (*Service) GetVersion

func (x *Service) GetVersion() string

func (*Service) GetXProto

func (x *Service) GetXProto() *Typeproto

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string
type Servicedeeplink struct {

	// Describe the query params
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// The link pattern, like /api/xxx/{qp}/yyy
	Href string `protobuf:"bytes,4,opt,name=href,proto3" json:"href,omitempty"`
	// method of curl
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// the relationship
	Rel string `protobuf:"bytes,2,opt,name=rel,proto3" json:"rel,omitempty"`
	// contains filtered or unexported fields
}

URL information for the service

func (*Servicedeeplink) Descriptor deprecated

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

Deprecated: Use Servicedeeplink.ProtoReflect.Descriptor instead.

func (*Servicedeeplink) GetDescription

func (x *Servicedeeplink) GetDescription() string

func (*Servicedeeplink) GetHref

func (x *Servicedeeplink) GetHref() string

func (*Servicedeeplink) GetMethod

func (x *Servicedeeplink) GetMethod() string

func (*Servicedeeplink) GetRel

func (x *Servicedeeplink) GetRel() string

func (*Servicedeeplink) ProtoMessage

func (*Servicedeeplink) ProtoMessage()

func (*Servicedeeplink) ProtoReflect

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

func (*Servicedeeplink) Reset

func (x *Servicedeeplink) Reset()

func (*Servicedeeplink) String

func (x *Servicedeeplink) String() string

type Servicereqres

type Servicereqres struct {

	// Define the request type, leave this field empty if not needed
	Request string `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Define the response type, leave this field empty if not needed
	Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	// Define the body field in request the type
	// The name of the request field whose value is mapped to the HTTP request
	// body, or `*` for mapping all request fields not captured by the path
	// pattern to the HTTP body, or omitted for not having any HTTP request body.
	// NOTE: the referred field must be present at the top-level of the request
	// message type.
	//
	Bodyfield string `protobuf:"bytes,3,opt,name=bodyfield,proto3" json:"bodyfield" yaml:"bodyfield"`
	// contains filtered or unexported fields
}

Repuest and response types for services, used in service.type

func (*Servicereqres) Descriptor deprecated

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

Deprecated: Use Servicereqres.ProtoReflect.Descriptor instead.

func (*Servicereqres) GetBodyfield

func (x *Servicereqres) GetBodyfield() string

func (*Servicereqres) GetRequest

func (x *Servicereqres) GetRequest() string

func (*Servicereqres) GetResponse

func (x *Servicereqres) GetResponse() string

func (*Servicereqres) ProtoMessage

func (*Servicereqres) ProtoMessage()

func (*Servicereqres) ProtoReflect

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

func (*Servicereqres) Reset

func (x *Servicereqres) Reset()

func (*Servicereqres) String

func (x *Servicereqres) String() string

type Type

type Type struct {

	// Name of the type
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"`
	// the type
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" yaml:"type"`
	// the type description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description" yaml:"description"`
	// Type lifecycle information, setting deprecated to true will log a warning when running furo
	Lifecycle *Lifecycle `protobuf:"bytes,7,opt,name=lifecycle,proto3" json:"lifecycle" yaml:"lifecycle"`
	// information for the proto generator, should be removed for the client spec
	XProto *Typeproto `protobuf:"bytes,4,opt,name=__proto,json=Proto,proto3" json:"__proto" yaml:"__proto"`
	// fields of a type
	// original was: Fields map[string]*Field `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Fields *orderedmap.OrderedMap `` /* 153-byte string literal not displayed */
	// Custom extension
	//original was: Extensions map[string]*anypb.Any `protobuf:"bytes,6,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Extensions *orderedmap.OrderedMap `json:"extensions,omitempty"  yaml:"extensions,omitempty"`
	// contains filtered or unexported fields
}

Defines a type in the furo spec

func (*Type) Descriptor deprecated

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

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetDescription

func (x *Type) GetDescription() string

func (*Type) GetExtensions

func (x *Type) GetExtensions() *orderedmap.OrderedMap

func (*Type) GetFields

func (x *Type) GetFields() *orderedmap.OrderedMap

func (*Type) GetLifecycle

func (x *Type) GetLifecycle() *Lifecycle

func (*Type) GetName

func (x *Type) GetName() string

func (*Type) GetType

func (x *Type) GetType() string

func (*Type) GetXProto

func (x *Type) GetXProto() *Typeproto

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

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

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type Typeproto

type Typeproto struct {

	// the package this type belogs to
	Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package" yaml:"package"`
	// the target proto file for this type
	Targetfile string `protobuf:"bytes,3,opt,name=targetfile,proto3" json:"targetfile" yaml:"targetfile"`
	// needed imports like [ "spec/descriptor.proto", "google/protobuf/empty.proto" ]
	Imports []string `protobuf:"bytes,2,rep,name=imports,proto3" json:"imports" yaml:"imports"`
	// Proto options Todo: find a solution for boolean options
	Options map[string]string `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

Main proto for a type

func (*Typeproto) Descriptor deprecated

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

Deprecated: Use Typeproto.ProtoReflect.Descriptor instead.

func (*Typeproto) GetImports

func (x *Typeproto) GetImports() []string

func (*Typeproto) GetOptions

func (x *Typeproto) GetOptions() map[string]string

func (*Typeproto) GetPackage

func (x *Typeproto) GetPackage() string

func (*Typeproto) GetTargetfile

func (x *Typeproto) GetTargetfile() string

func (*Typeproto) ProtoMessage

func (*Typeproto) ProtoMessage()

func (*Typeproto) ProtoReflect

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

func (*Typeproto) Reset

func (x *Typeproto) Reset()

func (*Typeproto) String

func (x *Typeproto) String() string

type Uiextension

type Uiextension struct {

	// component hint for ui-builder
	Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"`
	// UI element flags like full, double, hidden,...
	Flags []string `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"`
	// Skip adding this field on ui init
	NoInit bool `protobuf:"varint,3,opt,name=no_init,json=noInit,proto3" json:"no_init,omitempty"`
	// do not skip this field, even it is in the default skip list
	NoSkip bool `protobuf:"varint,4,opt,name=no_skip,json=noSkip,proto3" json:"no_skip,omitempty"`
	// contains filtered or unexported fields
}

ui hints for a field

func (*Uiextension) Descriptor deprecated

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

Deprecated: Use Uiextension.ProtoReflect.Descriptor instead.

func (*Uiextension) GetComponent

func (x *Uiextension) GetComponent() string

func (*Uiextension) GetFlags

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

func (*Uiextension) GetNoInit

func (x *Uiextension) GetNoInit() bool

func (*Uiextension) GetNoSkip

func (x *Uiextension) GetNoSkip() bool

func (*Uiextension) ProtoMessage

func (*Uiextension) ProtoMessage()

func (*Uiextension) ProtoReflect

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

func (*Uiextension) Reset

func (x *Uiextension) Reset()

func (*Uiextension) String

func (x *Uiextension) String() string

Jump to

Keyboard shortcuts

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