types

package
v6.46.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasType added in v6.6.0

type AliasType struct {
	Docs
	Name string
	Item Type
	// contains filtered or unexported fields
}

func (*AliasType) Code added in v6.6.0

func (t *AliasType) Code() *jen.Statement

func (*AliasType) ContainsStrictFields added in v6.6.0

func (t *AliasType) ContainsStrictFields() bool

func (*AliasType) IsBinary added in v6.6.0

func (t *AliasType) IsBinary() bool

func (*AliasType) IsBoolean added in v6.6.0

func (t *AliasType) IsBoolean() bool

func (*AliasType) IsCollection added in v6.6.0

func (t *AliasType) IsCollection() bool

func (*AliasType) IsList added in v6.6.0

func (t *AliasType) IsList() bool

func (*AliasType) IsNamed added in v6.6.0

func (*AliasType) IsNamed() bool

func (*AliasType) IsOptional added in v6.6.0

func (t *AliasType) IsOptional() bool

func (*AliasType) IsString added in v6.6.0

func (t *AliasType) IsString() bool

func (*AliasType) IsText added in v6.6.0

func (t *AliasType) IsText() bool

func (*AliasType) Make added in v6.6.0

func (t *AliasType) Make() *jen.Statement

func (*AliasType) Safety added in v6.35.0

func (t *AliasType) Safety() spec.LogSafety

func (*AliasType) String added in v6.6.0

func (t *AliasType) String() string

type Any

type Any struct {
	// contains filtered or unexported fields
}

func (Any) Code added in v6.6.0

func (Any) Code() *jen.Statement

func (Any) ContainsStrictFields added in v6.6.0

func (Any) ContainsStrictFields() bool

func (Any) IsBinary added in v6.6.0

func (Any) IsBinary() bool

func (Any) IsBoolean added in v6.6.0

func (Any) IsBoolean() bool

func (Any) IsCollection added in v6.6.0

func (Any) IsCollection() bool

func (Any) IsList added in v6.6.0

func (Any) IsList() bool

func (Any) IsNamed added in v6.6.0

func (Any) IsNamed() bool

func (Any) IsOptional added in v6.6.0

func (Any) IsOptional() bool

func (Any) IsString added in v6.6.0

func (Any) IsString() bool

func (Any) IsText added in v6.6.0

func (Any) IsText() bool

func (Any) Make added in v6.6.0

func (Any) Make() *jen.Statement

func (Any) Safety added in v6.35.0

func (Any) Safety() spec.LogSafety

func (Any) String added in v6.6.0

func (Any) String() string

type Bearertoken

type Bearertoken struct {
	// contains filtered or unexported fields
}

func (Bearertoken) Code added in v6.6.0

func (Bearertoken) Code() *jen.Statement

func (Bearertoken) ContainsStrictFields added in v6.6.0

func (Bearertoken) ContainsStrictFields() bool

func (Bearertoken) IsBinary added in v6.6.0

func (Bearertoken) IsBinary() bool

func (Bearertoken) IsBoolean added in v6.6.0

func (Bearertoken) IsBoolean() bool

func (Bearertoken) IsCollection added in v6.6.0

func (Bearertoken) IsCollection() bool

func (Bearertoken) IsList added in v6.6.0

func (Bearertoken) IsList() bool

func (Bearertoken) IsNamed added in v6.6.0

func (Bearertoken) IsNamed() bool

func (Bearertoken) IsOptional added in v6.6.0

func (Bearertoken) IsOptional() bool

func (Bearertoken) IsString added in v6.6.0

func (Bearertoken) IsString() bool

func (Bearertoken) IsText added in v6.6.0

func (Bearertoken) IsText() bool

func (Bearertoken) Make added in v6.6.0

func (Bearertoken) Make() *jen.Statement

func (Bearertoken) Safety added in v6.35.0

func (Bearertoken) Safety() spec.LogSafety

func (Bearertoken) String added in v6.6.0

func (Bearertoken) String() string

type Binary added in v6.6.0

type Binary struct {
	// contains filtered or unexported fields
}

func (Binary) Code added in v6.6.0

func (Binary) Code() *jen.Statement

func (Binary) ContainsStrictFields added in v6.6.0

func (Binary) ContainsStrictFields() bool

func (Binary) IsBinary added in v6.6.0

func (Binary) IsBinary() bool

func (Binary) IsBoolean added in v6.6.0

func (Binary) IsBoolean() bool

func (Binary) IsCollection added in v6.6.0

func (Binary) IsCollection() bool

func (Binary) IsList added in v6.6.0

func (Binary) IsList() bool

func (Binary) IsNamed added in v6.6.0

func (Binary) IsNamed() bool

func (Binary) IsOptional added in v6.6.0

func (Binary) IsOptional() bool

func (Binary) IsString added in v6.6.0

func (Binary) IsString() bool

func (Binary) IsText added in v6.6.0

func (Binary) IsText() bool

func (Binary) Make added in v6.6.0

func (Binary) Make() *jen.Statement

func (Binary) Safety added in v6.35.0

func (Binary) Safety() spec.LogSafety

func (Binary) String added in v6.6.0

func (Binary) String() string

type Boolean

type Boolean struct {
	// contains filtered or unexported fields
}

func (Boolean) Code added in v6.6.0

func (Boolean) Code() *jen.Statement

func (Boolean) ContainsStrictFields added in v6.6.0

func (Boolean) ContainsStrictFields() bool

func (Boolean) IsBinary added in v6.6.0

func (Boolean) IsBinary() bool

func (Boolean) IsBoolean added in v6.6.0

func (Boolean) IsBoolean() bool

func (Boolean) IsCollection added in v6.6.0

func (Boolean) IsCollection() bool

func (Boolean) IsList added in v6.6.0

func (Boolean) IsList() bool

func (Boolean) IsNamed added in v6.6.0

func (Boolean) IsNamed() bool

func (Boolean) IsOptional added in v6.6.0

func (Boolean) IsOptional() bool

func (Boolean) IsString added in v6.6.0

func (Boolean) IsString() bool

func (Boolean) IsText added in v6.6.0

func (Boolean) IsText() bool

func (Boolean) Make added in v6.6.0

func (Boolean) Make() *jen.Statement

func (Boolean) Safety added in v6.35.0

func (Boolean) Safety() spec.LogSafety

func (Boolean) String added in v6.6.0

func (Boolean) String() string

type ConjureDefinition added in v6.6.0

type ConjureDefinition struct {
	Version    int
	Packages   map[string]ConjurePackage
	Extensions map[string]interface{}
}

func NewConjureDefinition added in v6.6.0

func NewConjureDefinition(outputBaseDir string, def spec.ConjureDefinition) (*ConjureDefinition, error)

type ConjurePackage added in v6.6.0

type ConjurePackage struct {
	ConjurePackage string
	ImportPath     string
	OutputDir      string
	PackageName    string

	Aliases  []*AliasType
	Enums    []*EnumType
	Objects  []*ObjectType
	Unions   []*UnionType
	Errors   []*ErrorDefinition
	Services []*ServiceDefinition
}

type DateTime

type DateTime struct {
	// contains filtered or unexported fields
}

func (DateTime) Code added in v6.6.0

func (DateTime) Code() *jen.Statement

func (DateTime) ContainsStrictFields added in v6.6.0

func (DateTime) ContainsStrictFields() bool

func (DateTime) IsBinary added in v6.6.0

func (DateTime) IsBinary() bool

func (DateTime) IsBoolean added in v6.6.0

func (DateTime) IsBoolean() bool

func (DateTime) IsCollection added in v6.6.0

func (DateTime) IsCollection() bool

func (DateTime) IsList added in v6.6.0

func (DateTime) IsList() bool

func (DateTime) IsNamed added in v6.6.0

func (DateTime) IsNamed() bool

func (DateTime) IsOptional added in v6.6.0

func (DateTime) IsOptional() bool

func (DateTime) IsString added in v6.6.0

func (DateTime) IsString() bool

func (DateTime) IsText added in v6.6.0

func (DateTime) IsText() bool

func (DateTime) Make added in v6.6.0

func (DateTime) Make() *jen.Statement

func (DateTime) Safety added in v6.35.0

func (DateTime) Safety() spec.LogSafety

func (DateTime) String added in v6.6.0

func (DateTime) String() string

type Docs added in v6.6.0

type Docs string

func (Docs) CommentLine added in v6.6.0

func (c Docs) CommentLine() *jen.Statement

func (Docs) CommentLineWithDeprecation added in v6.41.0

func (c Docs) CommentLineWithDeprecation(deprecated Docs) *jen.Statement

type Double

type Double struct {
	// contains filtered or unexported fields
}

func (Double) Code added in v6.6.0

func (Double) Code() *jen.Statement

func (Double) ContainsStrictFields added in v6.6.0

func (Double) ContainsStrictFields() bool

func (Double) IsBinary added in v6.6.0

func (Double) IsBinary() bool

func (Double) IsBoolean added in v6.6.0

func (Double) IsBoolean() bool

func (Double) IsCollection added in v6.6.0

func (Double) IsCollection() bool

func (Double) IsList added in v6.6.0

func (Double) IsList() bool

func (Double) IsNamed added in v6.6.0

func (Double) IsNamed() bool

func (Double) IsOptional added in v6.6.0

func (Double) IsOptional() bool

func (Double) IsString added in v6.6.0

func (Double) IsString() bool

func (Double) IsText added in v6.6.0

func (Double) IsText() bool

func (Double) Make added in v6.6.0

func (Double) Make() *jen.Statement

func (Double) Safety added in v6.35.0

func (Double) Safety() spec.LogSafety

func (Double) String added in v6.6.0

func (Double) String() string

type EndpointArgumentDefinition added in v6.6.0

type EndpointArgumentDefinition struct {
	Docs
	Name      string
	Type      Type
	ParamType EndpointArgumentType
	ParamID   string
	Markers   []Type
	Safety    *spec.LogSafety
	Tags      []string
}

type EndpointArgumentType added in v6.6.0

type EndpointArgumentType uint
const (
	PathParam EndpointArgumentType
	HeaderParam
	QueryParam
	BodyParam
)

type EndpointDefinition added in v6.6.0

type EndpointDefinition struct {
	Docs
	Deprecated Docs

	EndpointName string
	HTTPMethod   spec.HttpMethod
	HTTPPath     string
	HeaderAuth   bool    // only one of HeaderAuth or CookieAuth allowed
	CookieAuth   *string // nil if no cookie auth, else value is cookie key
	Params       []*EndpointArgumentDefinition
	Returns      *Type // nil if no return
	Markers      []Type
	Tags         []string
}

func (EndpointDefinition) BodyParam added in v6.6.0

func (EndpointDefinition) HeaderParams added in v6.6.0

func (d EndpointDefinition) HeaderParams() []*EndpointArgumentDefinition

func (EndpointDefinition) PathParams added in v6.6.0

func (EndpointDefinition) QueryParams added in v6.6.0

type EnumType added in v6.6.0

type EnumType struct {
	Docs
	Deprecated Docs
	Name       string
	Values     []*Field
	// contains filtered or unexported fields
}

func (*EnumType) Code added in v6.6.0

func (t *EnumType) Code() *jen.Statement

func (EnumType) ContainsStrictFields added in v6.6.0

func (EnumType) ContainsStrictFields() bool

func (EnumType) IsBinary added in v6.6.0

func (EnumType) IsBinary() bool

func (EnumType) IsBoolean added in v6.6.0

func (EnumType) IsBoolean() bool

func (EnumType) IsCollection added in v6.6.0

func (EnumType) IsCollection() bool

func (EnumType) IsList added in v6.6.0

func (EnumType) IsList() bool

func (*EnumType) IsNamed added in v6.6.0

func (*EnumType) IsNamed() bool

func (EnumType) IsOptional added in v6.6.0

func (EnumType) IsOptional() bool

func (EnumType) IsString added in v6.6.0

func (EnumType) IsString() bool

func (*EnumType) IsText added in v6.6.0

func (*EnumType) IsText() bool

func (EnumType) Make added in v6.6.0

func (EnumType) Make() *jen.Statement

func (EnumType) Safety added in v6.35.0

func (EnumType) Safety() spec.LogSafety

func (*EnumType) String added in v6.6.0

func (t *EnumType) String() string

type EnumValue added in v6.6.0

type EnumValue struct {
	Docs
	Value string
}

type ErrorDefinition added in v6.6.0

type ErrorDefinition struct {
	Docs
	Name           string
	ErrorNamespace spec.ErrorNamespace
	ErrorCode      spec.ErrorCode
	SafeArgs       []*Field
	UnsafeArgs     []*Field
	// contains filtered or unexported fields
}

func (*ErrorDefinition) Code added in v6.6.0

func (t *ErrorDefinition) Code() *jen.Statement

type External added in v6.6.0

type External struct {
	Spec     spec.TypeName
	Fallback Type
	// contains filtered or unexported fields
}

func (*External) Code added in v6.6.0

func (t *External) Code() *jen.Statement

func (External) ContainsStrictFields added in v6.6.0

func (External) ContainsStrictFields() bool

func (*External) ExternalHasGoType added in v6.6.0

func (t *External) ExternalHasGoType() bool

func (External) IsBinary added in v6.6.0

func (External) IsBinary() bool

func (External) IsBoolean added in v6.6.0

func (External) IsBoolean() bool

func (External) IsCollection added in v6.6.0

func (External) IsCollection() bool

func (External) IsList added in v6.6.0

func (External) IsList() bool

func (External) IsNamed added in v6.6.0

func (External) IsNamed() bool

func (External) IsOptional added in v6.6.0

func (External) IsOptional() bool

func (External) IsString added in v6.6.0

func (External) IsString() bool

func (External) IsText added in v6.6.0

func (External) IsText() bool

func (External) Make added in v6.6.0

func (External) Make() *jen.Statement

func (External) Safety added in v6.35.0

func (External) Safety() spec.LogSafety

func (*External) String added in v6.6.0

func (t *External) String() string

type Field added in v6.6.0

type Field struct {
	Docs
	Deprecated Docs
	Name       string // JSON key or enum value
	Type       Type   // string for enum value
}

type Integer

type Integer struct {
	// contains filtered or unexported fields
}

func (Integer) Code added in v6.6.0

func (Integer) Code() *jen.Statement

func (Integer) ContainsStrictFields added in v6.6.0

func (Integer) ContainsStrictFields() bool

func (Integer) IsBinary added in v6.6.0

func (Integer) IsBinary() bool

func (Integer) IsBoolean added in v6.6.0

func (Integer) IsBoolean() bool

func (Integer) IsCollection added in v6.6.0

func (Integer) IsCollection() bool

func (Integer) IsList added in v6.6.0

func (Integer) IsList() bool

func (Integer) IsNamed added in v6.6.0

func (Integer) IsNamed() bool

func (Integer) IsOptional added in v6.6.0

func (Integer) IsOptional() bool

func (Integer) IsString added in v6.6.0

func (Integer) IsString() bool

func (Integer) IsText added in v6.6.0

func (Integer) IsText() bool

func (Integer) Make added in v6.6.0

func (Integer) Make() *jen.Statement

func (Integer) Safety added in v6.35.0

func (Integer) Safety() spec.LogSafety

func (Integer) String added in v6.6.0

func (Integer) String() string

type List added in v6.6.0

type List struct {
	Item Type
	// contains filtered or unexported fields
}

func (*List) Code added in v6.6.0

func (t *List) Code() *jen.Statement

func (List) ContainsStrictFields added in v6.6.0

func (List) ContainsStrictFields() bool

func (List) IsBinary added in v6.6.0

func (List) IsBinary() bool

func (List) IsBoolean added in v6.6.0

func (List) IsBoolean() bool

func (*List) IsCollection added in v6.6.0

func (*List) IsCollection() bool

func (*List) IsList added in v6.6.0

func (*List) IsList() bool

func (List) IsNamed added in v6.6.0

func (List) IsNamed() bool

func (List) IsOptional added in v6.6.0

func (List) IsOptional() bool

func (List) IsString added in v6.6.0

func (List) IsString() bool

func (List) IsText added in v6.6.0

func (List) IsText() bool

func (*List) Make added in v6.6.0

func (t *List) Make() *jen.Statement

func (*List) Safety added in v6.35.0

func (t *List) Safety() spec.LogSafety

func (*List) String added in v6.6.0

func (t *List) String() string

type Map added in v6.6.0

type Map struct {
	Key Type
	Val Type
	// contains filtered or unexported fields
}

func (*Map) Code added in v6.6.0

func (t *Map) Code() *jen.Statement

func (Map) ContainsStrictFields added in v6.6.0

func (Map) ContainsStrictFields() bool

func (Map) IsBinary added in v6.6.0

func (Map) IsBinary() bool

func (Map) IsBoolean added in v6.6.0

func (Map) IsBoolean() bool

func (*Map) IsCollection added in v6.6.0

func (t *Map) IsCollection() bool

func (Map) IsList added in v6.6.0

func (Map) IsList() bool

func (Map) IsNamed added in v6.6.0

func (Map) IsNamed() bool

func (Map) IsOptional added in v6.6.0

func (Map) IsOptional() bool

func (Map) IsString added in v6.6.0

func (Map) IsString() bool

func (Map) IsText added in v6.6.0

func (Map) IsText() bool

func (*Map) Make added in v6.6.0

func (t *Map) Make() *jen.Statement

func (Map) Safety added in v6.35.0

func (Map) Safety() spec.LogSafety

func (*Map) String added in v6.6.0

func (t *Map) String() string

type ObjectType added in v6.6.0

type ObjectType struct {
	Docs
	Name   string
	Fields []*Field
	// contains filtered or unexported fields
}

func (*ObjectType) Code added in v6.6.0

func (t *ObjectType) Code() *jen.Statement

func (*ObjectType) ContainsStrictFields added in v6.6.0

func (*ObjectType) ContainsStrictFields() bool

func (ObjectType) IsBinary added in v6.6.0

func (ObjectType) IsBinary() bool

func (ObjectType) IsBoolean added in v6.6.0

func (ObjectType) IsBoolean() bool

func (ObjectType) IsCollection added in v6.6.0

func (ObjectType) IsCollection() bool

func (ObjectType) IsList added in v6.6.0

func (ObjectType) IsList() bool

func (*ObjectType) IsNamed added in v6.6.0

func (*ObjectType) IsNamed() bool

func (ObjectType) IsOptional added in v6.6.0

func (ObjectType) IsOptional() bool

func (ObjectType) IsString added in v6.6.0

func (ObjectType) IsString() bool

func (ObjectType) IsText added in v6.6.0

func (ObjectType) IsText() bool

func (ObjectType) Make added in v6.6.0

func (ObjectType) Make() *jen.Statement

func (ObjectType) Safety added in v6.35.0

func (ObjectType) Safety() spec.LogSafety

func (*ObjectType) String added in v6.6.0

func (t *ObjectType) String() string

type Optional added in v6.6.0

type Optional struct {
	Item Type
	// contains filtered or unexported fields
}

func (*Optional) Code added in v6.6.0

func (t *Optional) Code() *jen.Statement

func (*Optional) ContainsStrictFields added in v6.6.0

func (t *Optional) ContainsStrictFields() bool

func (*Optional) IsBinary added in v6.6.0

func (t *Optional) IsBinary() bool

func (*Optional) IsBoolean added in v6.6.0

func (t *Optional) IsBoolean() bool

func (*Optional) IsCollection added in v6.6.0

func (t *Optional) IsCollection() bool

func (*Optional) IsList added in v6.6.0

func (t *Optional) IsList() bool

func (Optional) IsNamed added in v6.6.0

func (Optional) IsNamed() bool

func (*Optional) IsOptional added in v6.6.0

func (t *Optional) IsOptional() bool

func (*Optional) IsString added in v6.6.0

func (t *Optional) IsString() bool

func (*Optional) IsText added in v6.6.0

func (t *Optional) IsText() bool

func (*Optional) Make added in v6.6.0

func (t *Optional) Make() *jen.Statement

func (*Optional) Safety added in v6.35.0

func (t *Optional) Safety() spec.LogSafety

func (*Optional) String added in v6.6.0

func (t *Optional) String() string

type RID

type RID struct {
	// contains filtered or unexported fields
}

func (RID) Code added in v6.6.0

func (RID) Code() *jen.Statement

func (RID) ContainsStrictFields added in v6.6.0

func (RID) ContainsStrictFields() bool

func (RID) IsBinary added in v6.6.0

func (RID) IsBinary() bool

func (RID) IsBoolean added in v6.6.0

func (RID) IsBoolean() bool

func (RID) IsCollection added in v6.6.0

func (RID) IsCollection() bool

func (RID) IsList added in v6.6.0

func (RID) IsList() bool

func (RID) IsNamed added in v6.6.0

func (RID) IsNamed() bool

func (RID) IsOptional added in v6.6.0

func (RID) IsOptional() bool

func (RID) IsString added in v6.6.0

func (RID) IsString() bool

func (RID) IsText added in v6.6.0

func (RID) IsText() bool

func (RID) Make added in v6.6.0

func (RID) Make() *jen.Statement

func (RID) Safety added in v6.35.0

func (RID) Safety() spec.LogSafety

func (RID) String added in v6.6.0

func (RID) String() string

type Safelong added in v6.6.0

type Safelong struct {
	// contains filtered or unexported fields
}

func (Safelong) Code added in v6.6.0

func (Safelong) Code() *jen.Statement

func (Safelong) ContainsStrictFields added in v6.6.0

func (Safelong) ContainsStrictFields() bool

func (Safelong) IsBinary added in v6.6.0

func (Safelong) IsBinary() bool

func (Safelong) IsBoolean added in v6.6.0

func (Safelong) IsBoolean() bool

func (Safelong) IsCollection added in v6.6.0

func (Safelong) IsCollection() bool

func (Safelong) IsList added in v6.6.0

func (Safelong) IsList() bool

func (Safelong) IsNamed added in v6.6.0

func (Safelong) IsNamed() bool

func (Safelong) IsOptional added in v6.6.0

func (Safelong) IsOptional() bool

func (Safelong) IsString added in v6.6.0

func (Safelong) IsString() bool

func (Safelong) IsText added in v6.6.0

func (Safelong) IsText() bool

func (Safelong) Make added in v6.6.0

func (Safelong) Make() *jen.Statement

func (Safelong) Safety added in v6.35.0

func (Safelong) Safety() spec.LogSafety

func (Safelong) String added in v6.6.0

func (Safelong) String() string

type ServiceDefinition added in v6.6.0

type ServiceDefinition struct {
	Docs
	Name      string
	Endpoints []*EndpointDefinition
	// contains filtered or unexported fields
}

func (ServiceDefinition) HasCookieAuth added in v6.6.0

func (d ServiceDefinition) HasCookieAuth() bool

func (ServiceDefinition) HasHeaderAuth added in v6.6.0

func (d ServiceDefinition) HasHeaderAuth() bool

type Set added in v6.6.0

type Set struct {
	Item Type
	// contains filtered or unexported fields
}

func (*Set) Code added in v6.6.0

func (t *Set) Code() *jen.Statement

func (Set) ContainsStrictFields added in v6.6.0

func (Set) ContainsStrictFields() bool

func (Set) IsBinary added in v6.6.0

func (Set) IsBinary() bool

func (Set) IsBoolean added in v6.6.0

func (Set) IsBoolean() bool

func (*Set) IsCollection added in v6.6.0

func (*Set) IsCollection() bool

func (Set) IsList added in v6.6.0

func (Set) IsList() bool

func (Set) IsNamed added in v6.6.0

func (Set) IsNamed() bool

func (Set) IsOptional added in v6.6.0

func (Set) IsOptional() bool

func (Set) IsString added in v6.6.0

func (Set) IsString() bool

func (Set) IsText added in v6.6.0

func (Set) IsText() bool

func (*Set) Make added in v6.6.0

func (t *Set) Make() *jen.Statement

func (*Set) Safety added in v6.35.0

func (t *Set) Safety() spec.LogSafety

func (*Set) String added in v6.6.0

func (t *Set) String() string

type String

type String struct {
	// contains filtered or unexported fields
}

func (String) Code added in v6.6.0

func (String) Code() *jen.Statement

func (String) ContainsStrictFields added in v6.6.0

func (String) ContainsStrictFields() bool

func (String) IsBinary added in v6.6.0

func (String) IsBinary() bool

func (String) IsBoolean added in v6.6.0

func (String) IsBoolean() bool

func (String) IsCollection added in v6.6.0

func (String) IsCollection() bool

func (String) IsList added in v6.6.0

func (String) IsList() bool

func (String) IsNamed added in v6.6.0

func (String) IsNamed() bool

func (String) IsOptional added in v6.6.0

func (String) IsOptional() bool

func (String) IsString added in v6.6.0

func (String) IsString() bool

func (String) IsText added in v6.6.0

func (String) IsText() bool

func (String) Make added in v6.6.0

func (String) Make() *jen.Statement

func (String) Safety added in v6.35.0

func (String) Safety() spec.LogSafety

func (String) String added in v6.6.0

func (String) String() string

type Type added in v6.6.0

type Type interface {
	// Code returns the fully-qualified go type name.
	// If using exported names within the same package, jen.Qual will handle omitting the import.
	Code() *jen.Statement
	// Make returns an expression to `make` a collection type, if required.
	// If the type does not require initialization, Make returns nil.
	Make() *jen.Statement
	// String returns a human-friendly name for log messages
	String() string

	IsNamed() bool
	IsString() bool
	IsText() bool
	IsBinary() bool
	IsBoolean() bool
	IsOptional() bool
	IsCollection() bool
	IsList() bool
	ContainsStrictFields() bool
	Safety() spec.LogSafety
	// contains filtered or unexported methods
}

type UUID

type UUID struct {
	// contains filtered or unexported fields
}

func (UUID) Code added in v6.6.0

func (UUID) Code() *jen.Statement

func (UUID) ContainsStrictFields added in v6.6.0

func (UUID) ContainsStrictFields() bool

func (UUID) IsBinary added in v6.6.0

func (UUID) IsBinary() bool

func (UUID) IsBoolean added in v6.6.0

func (UUID) IsBoolean() bool

func (UUID) IsCollection added in v6.6.0

func (UUID) IsCollection() bool

func (UUID) IsList added in v6.6.0

func (UUID) IsList() bool

func (UUID) IsNamed added in v6.6.0

func (UUID) IsNamed() bool

func (UUID) IsOptional added in v6.6.0

func (UUID) IsOptional() bool

func (UUID) IsString added in v6.6.0

func (UUID) IsString() bool

func (UUID) IsText added in v6.6.0

func (UUID) IsText() bool

func (UUID) Make added in v6.6.0

func (UUID) Make() *jen.Statement

func (UUID) Safety added in v6.35.0

func (UUID) Safety() spec.LogSafety

func (UUID) String added in v6.6.0

func (UUID) String() string

type UnionType added in v6.6.0

type UnionType struct {
	Docs
	Name   string
	Fields []*Field
	// contains filtered or unexported fields
}

func (*UnionType) Code added in v6.6.0

func (t *UnionType) Code() *jen.Statement

func (*UnionType) ContainsStrictFields added in v6.6.0

func (*UnionType) ContainsStrictFields() bool

func (UnionType) IsBinary added in v6.6.0

func (UnionType) IsBinary() bool

func (UnionType) IsBoolean added in v6.6.0

func (UnionType) IsBoolean() bool

func (UnionType) IsCollection added in v6.6.0

func (UnionType) IsCollection() bool

func (UnionType) IsList added in v6.6.0

func (UnionType) IsList() bool

func (*UnionType) IsNamed added in v6.6.0

func (*UnionType) IsNamed() bool

func (UnionType) IsOptional added in v6.6.0

func (UnionType) IsOptional() bool

func (UnionType) IsString added in v6.6.0

func (UnionType) IsString() bool

func (UnionType) IsText added in v6.6.0

func (UnionType) IsText() bool

func (UnionType) Make added in v6.6.0

func (UnionType) Make() *jen.Statement

func (UnionType) Safety added in v6.35.0

func (UnionType) Safety() spec.LogSafety

func (*UnionType) String added in v6.6.0

func (t *UnionType) String() string

Jump to

Keyboard shortcuts

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