Documentation ¶
Index ¶
- Constants
- func IsStructFieldMonadic(sf reflect.StructField) bool
- func MonadicStructField(s reflect.Type) (reflect.StructField, bool)
- func StructFieldIsOptional(toField reflect.StructField) bool
- func StructFieldIsProtoOpt(sf reflect.StructField) bool
- func StructFieldIsProtoOptOrRep(sf reflect.StructField) bool
- func StructFieldKoProtoGoName(sf reflect.StructField) (string, bool)
- func StructFieldWithNoKoOrProtoName(sf reflect.StructField) bool
- type Gate
- type GateField
- type GateFields
- type GateStruct
- type KoGoName
Constants ¶
View Source
const Monadic = "monadic"
Variables ¶
This section is empty.
Functions ¶
func IsStructFieldMonadic ¶
func IsStructFieldMonadic(sf reflect.StructField) bool
func MonadicStructField ¶
func MonadicStructField(s reflect.Type) (reflect.StructField, bool)
func StructFieldIsOptional ¶
func StructFieldIsOptional(toField reflect.StructField) bool
func StructFieldIsProtoOpt ¶
func StructFieldIsProtoOpt(sf reflect.StructField) bool
func StructFieldIsProtoOptOrRep ¶
func StructFieldIsProtoOptOrRep(sf reflect.StructField) bool
func StructFieldKoProtoGoName ¶
func StructFieldKoProtoGoName(sf reflect.StructField) (string, bool)
func StructFieldWithNoKoOrProtoName ¶
func StructFieldWithNoKoOrProtoName(sf reflect.StructField) bool
Types ¶
type Gate ¶
type Gate struct { Receiver reflect.Type `ko:"name=receiver"` Struct GateStruct `ko:"name=arg"` }
Gate represents a Go struct type with a Play method and Ko function bindings.
func BindGate ¶
BindGate verifies the Go implementation before building and returning a harness object.
func (Gate) Arg ¶
func (f Gate) Arg() GateFields
type GateField ¶
type GateField struct{ reflect.StructField }
GateField represents a Go struct field with Ko bindings.
func (GateField) IsGoExported ¶
func (GateField) IsOptional ¶
func (GateField) IsVisibleInKo ¶
type GateFields ¶
type GateFields []GateField
func StripFields ¶
func StripFields(s reflect.Type) GateFields
func (GateFields) FieldByKoName ¶
func (fields GateFields) FieldByKoName(name string) (int, bool)
func (GateFields) Monadic ¶
func (fields GateFields) Monadic() (int, bool)
type GateStruct ¶
GateStruct represents a Go struct type with Ko bindings.
func BindStruct ¶
func BindStruct(t reflect.Type) (GateStruct, error)
BindStruct verifies that the given Go struct has a correctly-implemented Ko interface (i.e. bindings).
func (GateStruct) Field ¶
func (s GateStruct) Field() GateFields
func (GateStruct) FieldByKoName ¶
func (s GateStruct) FieldByKoName(name string) (GateField, bool)
func (GateStruct) GoName ¶
func (s GateStruct) GoName() string
func (GateStruct) GoPkgPath ¶
func (s GateStruct) GoPkgPath() string
func (GateStruct) String ¶
func (s GateStruct) String() string
Click to show internal directories.
Click to hide internal directories.