port

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShowTypePackage = iota
	ShowTypeService
	ShowTypeMessage
	ShowTypeRPC
	ShowTypeHeader
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallParams

type CallParams struct {
	RPCName string
}

type DescribeParams

type DescribeParams struct {
	MsgName string
}

type DynamicBuilder

type DynamicBuilder interface {
	NewMessage(m entity.Message) proto.Message
}

type HeaderParams

type HeaderParams struct {
	Headers []*entity.Header
}

type InputPort

type InputPort interface {
	Package(*PackageParams) (io.Reader, error)
	Service(*ServiceParams) (io.Reader, error)

	Describe(*DescribeParams) (io.Reader, error)
	Show(*ShowParams) (io.Reader, error)

	Header(*HeaderParams) (io.Reader, error)

	Call(*CallParams) (io.Reader, error)
}

type Inputter

type Inputter interface {
	Input(reqMsg entity.Message) (proto.Message, error)
}

type OutputPort

type OutputPort interface {
	Package() (io.Reader, error)
	Service() (io.Reader, error)
	Describe(showable Showable) (io.Reader, error)
	Show(showable Showable) (io.Reader, error)
	Header() (io.Reader, error)
	Call(res proto.Message) (io.Reader, error)
}

type PackageParams

type PackageParams struct {
	PkgName string
}

type ServiceParams

type ServiceParams struct {
	SvcName string
}

type ShowParams

type ShowParams struct {
	Type ShowType
}

type ShowType

type ShowType int

type Showable

type Showable interface {
	Show() string
}

Jump to

Keyboard shortcuts

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