dsl

package
v0.0.0-...-588a488 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

This source file is part of the carousell/aggproto open source project

Copyright © 2021 Carousell and the project authors Licensed under Apache License v2.0

See https://github.com/carousell/aggproto/blob/master/LICENSE for license information See https://github.com/carousell/aggproto/graphs/contributors for the list of project authors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasArgDescriptor

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

func (*AliasArgDescriptor) Input

func (a *AliasArgDescriptor) Input() string

func (*AliasArgDescriptor) Output

func (a *AliasArgDescriptor) Output() string

type ApiDescriptor

type ApiDescriptor interface {
	Name() string
	Version() int
	Group() string
	FileName() string
}

func GetApiDescriptor

func GetApiDescriptor(group, name string, version int) ApiDescriptor

type ApiSpec

type ApiSpec struct {
	Api struct {
		Name    string
		Group   string
		Version int
	}
	Meta struct {
		GoPackage string
	}
	Input      []string
	Output     []string
	Operations []string
}

func (*ApiSpec) ToContext

func (s *ApiSpec) ToContext() (*Context, error)

type ArgDescriptor

type ArgDescriptor interface {
	Input() string
	Output() string
}

type BoolValueFieldDescriptor

type BoolValueFieldDescriptor struct {
	Value bool
}

type Context

type Context struct {
	Api       ApiDescriptor
	Output    []FieldDescriptor
	Operation OpDescriptor
	Meta      Meta
	Input     []ArgDescriptor
}

func ParseApiSpec

func ParseApiSpec(filename string) (*Context, error)

type FieldDescriptor

type FieldDescriptor interface {
	Input() InputFieldDescriptor
	Output() OutputFieldDescriptor
}

func GetFieldDescriptors

func GetFieldDescriptors(inputs ...string) []FieldDescriptor

type FloatValueFieldDescriptor

type FloatValueFieldDescriptor struct {
	Value float64
}

type InputFieldDescriptor

type InputFieldDescriptor interface {
	// contains filtered or unexported methods
}

type IntValueFieldDescriptor

type IntValueFieldDescriptor struct {
	Value int64
}

type Meta

type Meta struct {
	GoPackage string
}

type NamespacedMessageFieldDescriptor

type NamespacedMessageFieldDescriptor struct {
	NamespacedField string
}

type OpDescriptor

type OpDescriptor struct {
	AllowedOperations []string
}

type OutputFieldDescriptor

type OutputFieldDescriptor interface {
	// contains filtered or unexported methods
}

type PipedArgDescriptor

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

func (*PipedArgDescriptor) Input

func (p *PipedArgDescriptor) Input() string

func (*PipedArgDescriptor) Output

func (p *PipedArgDescriptor) Output() string

type PrimitiveFieldDescriptor

type PrimitiveFieldDescriptor interface {
	InputFieldDescriptor
	// contains filtered or unexported methods
}

type StringValueFieldDescriptor

type StringValueFieldDescriptor struct {
	Value string
}

Jump to

Keyboard shortcuts

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