registry

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field interface {
	Type() FieldType
	Name() string
	Message() Message
	Context() Message
	Repeated() bool
}

type FieldType

type FieldType int
const (
	FieldTypeInt32 FieldType = iota
	FieldTypeInt64
	FieldTypeBool
	FieldTypeDouble
	FieldTypeString
	FieldTypeMessage
	FieldTypeEnum
)

func (FieldType) GoTypeString

func (ft FieldType) GoTypeString() string

type ListMessageOption

type ListMessageOption func(options ListMessageOptions) ListMessageOptions

func LMOWithFullName

func LMOWithFullName(name string) ListMessageOption

does message sub definition based resolution

func LMOWithPrefixMatch

func LMOWithPrefixMatch(prefix string) ListMessageOption

used for field name resolution;

type ListMessageOptions

type ListMessageOptions struct {
	ExactFullName *string
	PrefixMatch   *string
}

type ListServiceOption

type ListServiceOption func(options ListServiceOptions) ListServiceOptions

func LSOWithOperationNameIn

func LSOWithOperationNameIn(names []string) ListServiceOption

func LSOWithOutputMessage

func LSOWithOutputMessage(msg Message) ListServiceOption

type ListServiceOptions

type ListServiceOptions struct {
	MatchReturn Message
	OpNameIn    []string
}

type Message

type Message interface {
	Fields() []Field
	Definitions() []Message
	Parent() Message
	Package() string
	Name() string
	FullName() string
}

type Registry

type Registry interface {
	ListMessages(...ListMessageOption) []Message
	ListOperations(...ListServiceOption) []UnaryOperation
}

type Service

type Service interface {
	UnaryOperations() []UnaryOperation
	Package() string
	Name() string
}

type UnaryOperation

type UnaryOperation interface {
	Input() Message
	Output() Message
	Name() string
	Context() Service
	FullName() string
}

Directories

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

Jump to

Keyboard shortcuts

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