Documentation ¶
Index ¶
- type AliasType
- func (t *AliasType) Code() *jen.Statement
- func (t *AliasType) ContainsStrictFields() bool
- func (t *AliasType) IsBinary() bool
- func (t *AliasType) IsBoolean() bool
- func (t *AliasType) IsCollection() bool
- func (t *AliasType) IsList() bool
- func (*AliasType) IsNamed() bool
- func (t *AliasType) IsOptional() bool
- func (t *AliasType) IsString() bool
- func (t *AliasType) IsText() bool
- func (t *AliasType) Make() *jen.Statement
- func (t *AliasType) Safety() spec.LogSafety
- func (t *AliasType) String() string
- type Any
- func (Any) Code() *jen.Statement
- func (Any) ContainsStrictFields() bool
- func (Any) IsBinary() bool
- func (Any) IsBoolean() bool
- func (Any) IsCollection() bool
- func (Any) IsList() bool
- func (Any) IsNamed() bool
- func (Any) IsOptional() bool
- func (Any) IsString() bool
- func (Any) IsText() bool
- func (Any) Make() *jen.Statement
- func (Any) Safety() spec.LogSafety
- func (Any) String() string
- type Bearertoken
- func (Bearertoken) Code() *jen.Statement
- func (Bearertoken) ContainsStrictFields() bool
- func (Bearertoken) IsBinary() bool
- func (Bearertoken) IsBoolean() bool
- func (Bearertoken) IsCollection() bool
- func (Bearertoken) IsList() bool
- func (Bearertoken) IsNamed() bool
- func (Bearertoken) IsOptional() bool
- func (Bearertoken) IsString() bool
- func (Bearertoken) IsText() bool
- func (Bearertoken) Make() *jen.Statement
- func (Bearertoken) Safety() spec.LogSafety
- func (Bearertoken) String() string
- type Binary
- func (Binary) Code() *jen.Statement
- func (Binary) ContainsStrictFields() bool
- func (Binary) IsBinary() bool
- func (Binary) IsBoolean() bool
- func (Binary) IsCollection() bool
- func (Binary) IsList() bool
- func (Binary) IsNamed() bool
- func (Binary) IsOptional() bool
- func (Binary) IsString() bool
- func (Binary) IsText() bool
- func (Binary) Make() *jen.Statement
- func (Binary) Safety() spec.LogSafety
- func (Binary) String() string
- type Boolean
- func (Boolean) Code() *jen.Statement
- func (Boolean) ContainsStrictFields() bool
- func (Boolean) IsBinary() bool
- func (Boolean) IsBoolean() bool
- func (Boolean) IsCollection() bool
- func (Boolean) IsList() bool
- func (Boolean) IsNamed() bool
- func (Boolean) IsOptional() bool
- func (Boolean) IsString() bool
- func (Boolean) IsText() bool
- func (Boolean) Make() *jen.Statement
- func (Boolean) Safety() spec.LogSafety
- func (Boolean) String() string
- type ConjureDefinition
- type ConjurePackage
- type DateTime
- func (DateTime) Code() *jen.Statement
- func (DateTime) ContainsStrictFields() bool
- func (DateTime) IsBinary() bool
- func (DateTime) IsBoolean() bool
- func (DateTime) IsCollection() bool
- func (DateTime) IsList() bool
- func (DateTime) IsNamed() bool
- func (DateTime) IsOptional() bool
- func (DateTime) IsString() bool
- func (DateTime) IsText() bool
- func (DateTime) Make() *jen.Statement
- func (DateTime) Safety() spec.LogSafety
- func (DateTime) String() string
- type Docs
- type Double
- func (Double) Code() *jen.Statement
- func (Double) ContainsStrictFields() bool
- func (Double) IsBinary() bool
- func (Double) IsBoolean() bool
- func (Double) IsCollection() bool
- func (Double) IsList() bool
- func (Double) IsNamed() bool
- func (Double) IsOptional() bool
- func (Double) IsString() bool
- func (Double) IsText() bool
- func (Double) Make() *jen.Statement
- func (Double) Safety() spec.LogSafety
- func (Double) String() string
- type EndpointArgumentDefinition
- type EndpointArgumentType
- type EndpointDefinition
- type EnumType
- func (t *EnumType) Code() *jen.Statement
- func (EnumType) ContainsStrictFields() bool
- func (EnumType) IsBinary() bool
- func (EnumType) IsBoolean() bool
- func (EnumType) IsCollection() bool
- func (EnumType) IsList() bool
- func (*EnumType) IsNamed() bool
- func (EnumType) IsOptional() bool
- func (EnumType) IsString() bool
- func (*EnumType) IsText() bool
- func (EnumType) Make() *jen.Statement
- func (EnumType) Safety() spec.LogSafety
- func (t *EnumType) String() string
- type EnumValue
- type ErrorDefinition
- type External
- func (t *External) Code() *jen.Statement
- func (External) ContainsStrictFields() bool
- func (t *External) ExternalHasGoType() bool
- func (External) IsBinary() bool
- func (External) IsBoolean() bool
- func (External) IsCollection() bool
- func (External) IsList() bool
- func (External) IsNamed() bool
- func (External) IsOptional() bool
- func (External) IsString() bool
- func (External) IsText() bool
- func (External) Make() *jen.Statement
- func (External) Safety() spec.LogSafety
- func (t *External) String() string
- type Field
- type Integer
- func (Integer) Code() *jen.Statement
- func (Integer) ContainsStrictFields() bool
- func (Integer) IsBinary() bool
- func (Integer) IsBoolean() bool
- func (Integer) IsCollection() bool
- func (Integer) IsList() bool
- func (Integer) IsNamed() bool
- func (Integer) IsOptional() bool
- func (Integer) IsString() bool
- func (Integer) IsText() bool
- func (Integer) Make() *jen.Statement
- func (Integer) Safety() spec.LogSafety
- func (Integer) String() string
- type List
- func (t *List) Code() *jen.Statement
- func (List) ContainsStrictFields() bool
- func (List) IsBinary() bool
- func (List) IsBoolean() bool
- func (*List) IsCollection() bool
- func (*List) IsList() bool
- func (List) IsNamed() bool
- func (List) IsOptional() bool
- func (List) IsString() bool
- func (List) IsText() bool
- func (t *List) Make() *jen.Statement
- func (t *List) Safety() spec.LogSafety
- func (t *List) String() string
- type Map
- func (t *Map) Code() *jen.Statement
- func (Map) ContainsStrictFields() bool
- func (Map) IsBinary() bool
- func (Map) IsBoolean() bool
- func (t *Map) IsCollection() bool
- func (Map) IsList() bool
- func (Map) IsNamed() bool
- func (Map) IsOptional() bool
- func (Map) IsString() bool
- func (Map) IsText() bool
- func (t *Map) Make() *jen.Statement
- func (Map) Safety() spec.LogSafety
- func (t *Map) String() string
- type ObjectType
- func (t *ObjectType) Code() *jen.Statement
- func (*ObjectType) ContainsStrictFields() bool
- func (ObjectType) IsBinary() bool
- func (ObjectType) IsBoolean() bool
- func (ObjectType) IsCollection() bool
- func (ObjectType) IsList() bool
- func (*ObjectType) IsNamed() bool
- func (ObjectType) IsOptional() bool
- func (ObjectType) IsString() bool
- func (ObjectType) IsText() bool
- func (ObjectType) Make() *jen.Statement
- func (ObjectType) Safety() spec.LogSafety
- func (t *ObjectType) String() string
- type Optional
- func (t *Optional) Code() *jen.Statement
- func (t *Optional) ContainsStrictFields() bool
- func (t *Optional) IsBinary() bool
- func (t *Optional) IsBoolean() bool
- func (t *Optional) IsCollection() bool
- func (t *Optional) IsList() bool
- func (Optional) IsNamed() bool
- func (t *Optional) IsOptional() bool
- func (t *Optional) IsString() bool
- func (t *Optional) IsText() bool
- func (t *Optional) Make() *jen.Statement
- func (t *Optional) Safety() spec.LogSafety
- func (t *Optional) String() string
- type RID
- func (RID) Code() *jen.Statement
- func (RID) ContainsStrictFields() bool
- func (RID) IsBinary() bool
- func (RID) IsBoolean() bool
- func (RID) IsCollection() bool
- func (RID) IsList() bool
- func (RID) IsNamed() bool
- func (RID) IsOptional() bool
- func (RID) IsString() bool
- func (RID) IsText() bool
- func (RID) Make() *jen.Statement
- func (RID) Safety() spec.LogSafety
- func (RID) String() string
- type Safelong
- func (Safelong) Code() *jen.Statement
- func (Safelong) ContainsStrictFields() bool
- func (Safelong) IsBinary() bool
- func (Safelong) IsBoolean() bool
- func (Safelong) IsCollection() bool
- func (Safelong) IsList() bool
- func (Safelong) IsNamed() bool
- func (Safelong) IsOptional() bool
- func (Safelong) IsString() bool
- func (Safelong) IsText() bool
- func (Safelong) Make() *jen.Statement
- func (Safelong) Safety() spec.LogSafety
- func (Safelong) String() string
- type ServiceDefinition
- type Set
- func (t *Set) Code() *jen.Statement
- func (Set) ContainsStrictFields() bool
- func (Set) IsBinary() bool
- func (Set) IsBoolean() bool
- func (*Set) IsCollection() bool
- func (Set) IsList() bool
- func (Set) IsNamed() bool
- func (Set) IsOptional() bool
- func (Set) IsString() bool
- func (Set) IsText() bool
- func (t *Set) Make() *jen.Statement
- func (t *Set) Safety() spec.LogSafety
- func (t *Set) String() string
- type String
- func (String) Code() *jen.Statement
- func (String) ContainsStrictFields() bool
- func (String) IsBinary() bool
- func (String) IsBoolean() bool
- func (String) IsCollection() bool
- func (String) IsList() bool
- func (String) IsNamed() bool
- func (String) IsOptional() bool
- func (String) IsString() bool
- func (String) IsText() bool
- func (String) Make() *jen.Statement
- func (String) Safety() spec.LogSafety
- func (String) String() string
- type Type
- type UUID
- func (UUID) Code() *jen.Statement
- func (UUID) ContainsStrictFields() bool
- func (UUID) IsBinary() bool
- func (UUID) IsBoolean() bool
- func (UUID) IsCollection() bool
- func (UUID) IsList() bool
- func (UUID) IsNamed() bool
- func (UUID) IsOptional() bool
- func (UUID) IsString() bool
- func (UUID) IsText() bool
- func (UUID) Make() *jen.Statement
- func (UUID) Safety() spec.LogSafety
- func (UUID) String() string
- type UnionType
- func (t *UnionType) Code() *jen.Statement
- func (*UnionType) ContainsStrictFields() bool
- func (UnionType) IsBinary() bool
- func (UnionType) IsBoolean() bool
- func (UnionType) IsCollection() bool
- func (UnionType) IsList() bool
- func (*UnionType) IsNamed() bool
- func (UnionType) IsOptional() bool
- func (UnionType) IsString() bool
- func (UnionType) IsText() bool
- func (UnionType) Make() *jen.Statement
- func (UnionType) Safety() spec.LogSafety
- func (t *UnionType) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasType ¶ added in v6.6.0
func (*AliasType) ContainsStrictFields ¶ added in v6.6.0
func (*AliasType) IsCollection ¶ added in v6.6.0
func (*AliasType) IsOptional ¶ added in v6.6.0
type Any ¶
type Any struct {
// contains filtered or unexported fields
}
func (Any) ContainsStrictFields ¶ added in v6.6.0
func (Any) ContainsStrictFields() bool
func (Any) IsCollection ¶ added in v6.6.0
func (Any) IsCollection() bool
func (Any) IsOptional ¶ added in v6.6.0
func (Any) IsOptional() bool
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) IsCollection ¶ added in v6.6.0
func (Bearertoken) IsCollection() bool
func (Bearertoken) IsOptional ¶ added in v6.6.0
func (Bearertoken) IsOptional() bool
func (Bearertoken) IsText ¶ added in v6.6.0
func (Bearertoken) IsText() bool
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) ContainsStrictFields ¶ added in v6.6.0
func (Binary) ContainsStrictFields() bool
func (Binary) IsCollection ¶ added in v6.6.0
func (Binary) IsCollection() bool
func (Binary) IsOptional ¶ added in v6.6.0
func (Binary) IsOptional() bool
type Boolean ¶
type Boolean struct {
// contains filtered or unexported fields
}
func (Boolean) ContainsStrictFields ¶ added in v6.6.0
func (Boolean) ContainsStrictFields() bool
func (Boolean) IsCollection ¶ added in v6.6.0
func (Boolean) IsCollection() bool
func (Boolean) IsOptional ¶ added in v6.6.0
func (Boolean) IsOptional() bool
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) ContainsStrictFields ¶ added in v6.6.0
func (DateTime) ContainsStrictFields() bool
func (DateTime) IsCollection ¶ added in v6.6.0
func (DateTime) IsCollection() bool
func (DateTime) IsOptional ¶ added in v6.6.0
func (DateTime) IsOptional() bool
type Double ¶
type Double struct {
// contains filtered or unexported fields
}
func (Double) ContainsStrictFields ¶ added in v6.6.0
func (Double) ContainsStrictFields() bool
func (Double) IsCollection ¶ added in v6.6.0
func (Double) IsCollection() bool
func (Double) IsOptional ¶ added in v6.6.0
func (Double) IsOptional() bool
type EndpointArgumentDefinition ¶ added in v6.6.0
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 (d EndpointDefinition) BodyParam() *EndpointArgumentDefinition
func (EndpointDefinition) HeaderParams ¶ added in v6.6.0
func (d EndpointDefinition) HeaderParams() []*EndpointArgumentDefinition
func (EndpointDefinition) PathParams ¶ added in v6.6.0
func (d EndpointDefinition) PathParams() []*EndpointArgumentDefinition
func (EndpointDefinition) QueryParams ¶ added in v6.6.0
func (d EndpointDefinition) QueryParams() []*EndpointArgumentDefinition
type EnumType ¶ added in v6.6.0
type EnumType struct { Docs Deprecated Docs Name string Values []*Field // contains filtered or unexported fields }
func (EnumType) ContainsStrictFields ¶ added in v6.6.0
func (EnumType) ContainsStrictFields() bool
func (EnumType) IsCollection ¶ added in v6.6.0
func (EnumType) IsCollection() bool
func (EnumType) IsOptional ¶ added in v6.6.0
func (EnumType) IsOptional() bool
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
func (External) ContainsStrictFields ¶ added in v6.6.0
func (External) ContainsStrictFields() bool
func (*External) ExternalHasGoType ¶ added in v6.6.0
func (External) IsCollection ¶ added in v6.6.0
func (External) IsCollection() bool
func (External) IsOptional ¶ added in v6.6.0
func (External) IsOptional() bool
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func (Integer) ContainsStrictFields ¶ added in v6.6.0
func (Integer) ContainsStrictFields() bool
func (Integer) IsCollection ¶ added in v6.6.0
func (Integer) IsCollection() bool
func (Integer) IsOptional ¶ added in v6.6.0
func (Integer) IsOptional() bool
type List ¶ added in v6.6.0
type List struct { Item Type // contains filtered or unexported fields }
func (List) ContainsStrictFields ¶ added in v6.6.0
func (List) ContainsStrictFields() bool
func (*List) IsCollection ¶ added in v6.6.0
func (List) IsOptional ¶ added in v6.6.0
func (List) IsOptional() bool
type Map ¶ added in v6.6.0
func (Map) ContainsStrictFields ¶ added in v6.6.0
func (Map) ContainsStrictFields() bool
func (*Map) IsCollection ¶ added in v6.6.0
func (Map) IsOptional ¶ added in v6.6.0
func (Map) IsOptional() bool
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) IsCollection ¶ added in v6.6.0
func (ObjectType) IsCollection() 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) 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) ContainsStrictFields ¶ added in v6.6.0
func (*Optional) IsCollection ¶ added in v6.6.0
func (*Optional) IsOptional ¶ added in v6.6.0
type RID ¶
type RID struct {
// contains filtered or unexported fields
}
func (RID) ContainsStrictFields ¶ added in v6.6.0
func (RID) ContainsStrictFields() bool
func (RID) IsCollection ¶ added in v6.6.0
func (RID) IsCollection() bool
func (RID) IsOptional ¶ added in v6.6.0
func (RID) IsOptional() bool
type Safelong ¶ added in v6.6.0
type Safelong struct {
// contains filtered or unexported fields
}
func (Safelong) ContainsStrictFields ¶ added in v6.6.0
func (Safelong) ContainsStrictFields() bool
func (Safelong) IsCollection ¶ added in v6.6.0
func (Safelong) IsCollection() bool
func (Safelong) IsOptional ¶ added in v6.6.0
func (Safelong) IsOptional() bool
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) ContainsStrictFields ¶ added in v6.6.0
func (Set) ContainsStrictFields() bool
func (*Set) IsCollection ¶ added in v6.6.0
func (Set) IsOptional ¶ added in v6.6.0
func (Set) IsOptional() bool
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (String) ContainsStrictFields ¶ added in v6.6.0
func (String) ContainsStrictFields() bool
func (String) IsCollection ¶ added in v6.6.0
func (String) IsCollection() bool
func (String) IsOptional ¶ added in v6.6.0
func (String) IsOptional() bool
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) ContainsStrictFields ¶ added in v6.6.0
func (UUID) ContainsStrictFields() bool
func (UUID) IsCollection ¶ added in v6.6.0
func (UUID) IsCollection() bool
func (UUID) IsOptional ¶ added in v6.6.0
func (UUID) IsOptional() bool
type UnionType ¶ added in v6.6.0
type UnionType struct { Docs Name string Fields []*Field // contains filtered or unexported fields }
func (*UnionType) ContainsStrictFields ¶ added in v6.6.0
func (UnionType) IsCollection ¶ added in v6.6.0
func (UnionType) IsCollection() bool
func (UnionType) IsOptional ¶ added in v6.6.0
func (UnionType) IsOptional() bool
Click to show internal directories.
Click to hide internal directories.