models

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: 1 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIContext

type APIContext struct {
	API  APIDescriptor
	Meta struct {
		GoPackage string
	}
	Operations struct {
		AllowedOperations []string
	}
	Outputs []APIContextOutput
}

type APIContextOutput

type APIContextOutput struct {
	Input struct {
		Value string
		Type  InputType
	}
	Output struct {
		Value string
	}
}

type APIDescriptor

type APIDescriptor struct {
	Name    string
	Group   string
	Version int
}

type InputType

type InputType int
const (
	Unknown InputType = iota
	PrimitiveIntType
	PrimitiveStringType
	PrimitiveDoubleType
	PrimitiveBoolType
	MessageType
)

type Message

type Message struct {
	PackageName string
	Name        string
	Fields      []*MessageField
}

type MessageField

type MessageField struct {
	Name     string
	Type     string
	Message  *Message
	Selected bool
	Repeated bool
}

type SpecInfo

type SpecInfo struct {
	APIDescriptor APIDescriptor
	Filename      string
}

func (*SpecInfo) Id

func (si *SpecInfo) Id() string

Jump to

Keyboard shortcuts

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