proto

package
v0.0.2-0...-a5fe278 Latest Latest
Warning

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

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

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

shenzhen-go.proto

It has these top-level messages:

Empty
NodePin
ChannelConfig
NodeConfig
ActionRequest
ActionResponse
Input
Output
SetChannelRequest
SetGraphPropertiesRequest
SetNodeRequest
SetPositionRequest

Index

Constants

This section is empty.

Variables

View Source
var ActionRequest_Action_name = map[int]string{
	0: "SAVE",
	1: "REVERT",
	2: "GENERATE",
	3: "BUILD",
	4: "INSTALL",
}
View Source
var ActionRequest_Action_value = map[string]int{
	"SAVE":     0,
	"REVERT":   1,
	"GENERATE": 2,
	"BUILD":    3,
	"INSTALL":  4,
}

Functions

This section is empty.

Types

type ActionRequest

type ActionRequest struct {
	Graph  string
	Action ActionRequest_Action
}

func (*ActionRequest) GetAction

func (m *ActionRequest) GetAction() (x ActionRequest_Action)

GetAction gets the Action of the ActionRequest.

func (*ActionRequest) GetGraph

func (m *ActionRequest) GetGraph() (x string)

GetGraph gets the Graph of the ActionRequest.

func (*ActionRequest) Marshal

func (m *ActionRequest) Marshal() []byte

Marshal marshals ActionRequest to a slice of bytes.

func (*ActionRequest) MarshalToWriter

func (m *ActionRequest) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals ActionRequest to the provided writer.

func (*ActionRequest) Unmarshal

func (m *ActionRequest) Unmarshal(rawBytes []byte) (*ActionRequest, error)

Unmarshal unmarshals a ActionRequest from a slice of bytes.

func (*ActionRequest) UnmarshalFromReader

func (m *ActionRequest) UnmarshalFromReader(reader jspb.Reader) *ActionRequest

UnmarshalFromReader unmarshals a ActionRequest from the provided reader.

type ActionRequest_Action

type ActionRequest_Action int
const (
	ActionRequest_SAVE     ActionRequest_Action = 0
	ActionRequest_REVERT   ActionRequest_Action = 1
	ActionRequest_GENERATE ActionRequest_Action = 2
	ActionRequest_BUILD    ActionRequest_Action = 3
	ActionRequest_INSTALL  ActionRequest_Action = 4
)

func (ActionRequest_Action) String

func (x ActionRequest_Action) String() string

type ActionResponse

type ActionResponse struct {
	Output string
}

func (*ActionResponse) GetOutput

func (m *ActionResponse) GetOutput() (x string)

GetOutput gets the Output of the ActionResponse.

func (*ActionResponse) Marshal

func (m *ActionResponse) Marshal() []byte

Marshal marshals ActionResponse to a slice of bytes.

func (*ActionResponse) MarshalToWriter

func (m *ActionResponse) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals ActionResponse to the provided writer.

func (*ActionResponse) Unmarshal

func (m *ActionResponse) Unmarshal(rawBytes []byte) (*ActionResponse, error)

Unmarshal unmarshals a ActionResponse from a slice of bytes.

func (*ActionResponse) UnmarshalFromReader

func (m *ActionResponse) UnmarshalFromReader(reader jspb.Reader) *ActionResponse

UnmarshalFromReader unmarshals a ActionResponse from the provided reader.

type ChannelConfig

type ChannelConfig struct {
	Name string
	Cap  uint64
	Pins []*NodePin
}

func (*ChannelConfig) GetCap

func (m *ChannelConfig) GetCap() (x uint64)

GetCap gets the Cap of the ChannelConfig.

func (*ChannelConfig) GetName

func (m *ChannelConfig) GetName() (x string)

GetName gets the Name of the ChannelConfig.

func (*ChannelConfig) GetPins

func (m *ChannelConfig) GetPins() (x []*NodePin)

GetPins gets the Pins of the ChannelConfig.

func (*ChannelConfig) Marshal

func (m *ChannelConfig) Marshal() []byte

Marshal marshals ChannelConfig to a slice of bytes.

func (*ChannelConfig) MarshalToWriter

func (m *ChannelConfig) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals ChannelConfig to the provided writer.

func (*ChannelConfig) Unmarshal

func (m *ChannelConfig) Unmarshal(rawBytes []byte) (*ChannelConfig, error)

Unmarshal unmarshals a ChannelConfig from a slice of bytes.

func (*ChannelConfig) UnmarshalFromReader

func (m *ChannelConfig) UnmarshalFromReader(reader jspb.Reader) *ChannelConfig

UnmarshalFromReader unmarshals a ChannelConfig from the provided reader.

type Empty

type Empty struct {
}

func (*Empty) Marshal

func (m *Empty) Marshal() []byte

Marshal marshals Empty to a slice of bytes.

func (*Empty) MarshalToWriter

func (m *Empty) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Empty to the provided writer.

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(rawBytes []byte) (*Empty, error)

Unmarshal unmarshals a Empty from a slice of bytes.

func (*Empty) UnmarshalFromReader

func (m *Empty) UnmarshalFromReader(reader jspb.Reader) *Empty

UnmarshalFromReader unmarshals a Empty from the provided reader.

type Input

type Input struct {
	Graph string
	In    string
}

func (*Input) GetGraph

func (m *Input) GetGraph() (x string)

GetGraph gets the Graph of the Input.

func (*Input) GetIn

func (m *Input) GetIn() (x string)

GetIn gets the In of the Input.

func (*Input) Marshal

func (m *Input) Marshal() []byte

Marshal marshals Input to a slice of bytes.

func (*Input) MarshalToWriter

func (m *Input) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Input to the provided writer.

func (*Input) Unmarshal

func (m *Input) Unmarshal(rawBytes []byte) (*Input, error)

Unmarshal unmarshals a Input from a slice of bytes.

func (*Input) UnmarshalFromReader

func (m *Input) UnmarshalFromReader(reader jspb.Reader) *Input

UnmarshalFromReader unmarshals a Input from the provided reader.

type NodeConfig

type NodeConfig struct {
	Name         string
	Comment      string
	Enabled      bool
	Multiplicity string
	Wait         bool
	PartCfg      []byte
	PartType     string
	X            float64
	Y            float64
}

func (*NodeConfig) GetComment

func (m *NodeConfig) GetComment() (x string)

GetComment gets the Comment of the NodeConfig.

func (*NodeConfig) GetEnabled

func (m *NodeConfig) GetEnabled() (x bool)

GetEnabled gets the Enabled of the NodeConfig.

func (*NodeConfig) GetMultiplicity

func (m *NodeConfig) GetMultiplicity() (x string)

GetMultiplicity gets the Multiplicity of the NodeConfig.

func (*NodeConfig) GetName

func (m *NodeConfig) GetName() (x string)

GetName gets the Name of the NodeConfig.

func (*NodeConfig) GetPartCfg

func (m *NodeConfig) GetPartCfg() (x []byte)

GetPartCfg gets the PartCfg of the NodeConfig.

func (*NodeConfig) GetPartType

func (m *NodeConfig) GetPartType() (x string)

GetPartType gets the PartType of the NodeConfig.

func (*NodeConfig) GetWait

func (m *NodeConfig) GetWait() (x bool)

GetWait gets the Wait of the NodeConfig.

func (*NodeConfig) GetX

func (m *NodeConfig) GetX() (x float64)

GetX gets the X of the NodeConfig.

func (*NodeConfig) GetY

func (m *NodeConfig) GetY() (x float64)

GetY gets the Y of the NodeConfig.

func (*NodeConfig) Marshal

func (m *NodeConfig) Marshal() []byte

Marshal marshals NodeConfig to a slice of bytes.

func (*NodeConfig) MarshalToWriter

func (m *NodeConfig) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals NodeConfig to the provided writer.

func (*NodeConfig) Unmarshal

func (m *NodeConfig) Unmarshal(rawBytes []byte) (*NodeConfig, error)

Unmarshal unmarshals a NodeConfig from a slice of bytes.

func (*NodeConfig) UnmarshalFromReader

func (m *NodeConfig) UnmarshalFromReader(reader jspb.Reader) *NodeConfig

UnmarshalFromReader unmarshals a NodeConfig from the provided reader.

type NodePin

type NodePin struct {
	Node string
	Pin  string
}

func (*NodePin) GetNode

func (m *NodePin) GetNode() (x string)

GetNode gets the Node of the NodePin.

func (*NodePin) GetPin

func (m *NodePin) GetPin() (x string)

GetPin gets the Pin of the NodePin.

func (*NodePin) Marshal

func (m *NodePin) Marshal() []byte

Marshal marshals NodePin to a slice of bytes.

func (*NodePin) MarshalToWriter

func (m *NodePin) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals NodePin to the provided writer.

func (*NodePin) Unmarshal

func (m *NodePin) Unmarshal(rawBytes []byte) (*NodePin, error)

Unmarshal unmarshals a NodePin from a slice of bytes.

func (*NodePin) UnmarshalFromReader

func (m *NodePin) UnmarshalFromReader(reader jspb.Reader) *NodePin

UnmarshalFromReader unmarshals a NodePin from the provided reader.

type Output

type Output struct {
	Out string
	Err string
}

func (*Output) GetErr

func (m *Output) GetErr() (x string)

GetErr gets the Err of the Output.

func (*Output) GetOut

func (m *Output) GetOut() (x string)

GetOut gets the Out of the Output.

func (*Output) Marshal

func (m *Output) Marshal() []byte

Marshal marshals Output to a slice of bytes.

func (*Output) MarshalToWriter

func (m *Output) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Output to the provided writer.

func (*Output) Unmarshal

func (m *Output) Unmarshal(rawBytes []byte) (*Output, error)

Unmarshal unmarshals a Output from a slice of bytes.

func (*Output) UnmarshalFromReader

func (m *Output) UnmarshalFromReader(reader jspb.Reader) *Output

UnmarshalFromReader unmarshals a Output from the provided reader.

type SetChannelRequest

type SetChannelRequest struct {
	Graph   string
	Channel string
	Config  *ChannelConfig
}

func (*SetChannelRequest) GetChannel

func (m *SetChannelRequest) GetChannel() (x string)

GetChannel gets the Channel of the SetChannelRequest.

func (*SetChannelRequest) GetConfig

func (m *SetChannelRequest) GetConfig() (x *ChannelConfig)

GetConfig gets the Config of the SetChannelRequest.

func (*SetChannelRequest) GetGraph

func (m *SetChannelRequest) GetGraph() (x string)

GetGraph gets the Graph of the SetChannelRequest.

func (*SetChannelRequest) Marshal

func (m *SetChannelRequest) Marshal() []byte

Marshal marshals SetChannelRequest to a slice of bytes.

func (*SetChannelRequest) MarshalToWriter

func (m *SetChannelRequest) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals SetChannelRequest to the provided writer.

func (*SetChannelRequest) Unmarshal

func (m *SetChannelRequest) Unmarshal(rawBytes []byte) (*SetChannelRequest, error)

Unmarshal unmarshals a SetChannelRequest from a slice of bytes.

func (*SetChannelRequest) UnmarshalFromReader

func (m *SetChannelRequest) UnmarshalFromReader(reader jspb.Reader) *SetChannelRequest

UnmarshalFromReader unmarshals a SetChannelRequest from the provided reader.

type SetGraphPropertiesRequest

type SetGraphPropertiesRequest struct {
	Graph       string
	Name        string
	PackagePath string
	IsCommand   bool
}

func (*SetGraphPropertiesRequest) GetGraph

func (m *SetGraphPropertiesRequest) GetGraph() (x string)

GetGraph gets the Graph of the SetGraphPropertiesRequest.

func (*SetGraphPropertiesRequest) GetIsCommand

func (m *SetGraphPropertiesRequest) GetIsCommand() (x bool)

GetIsCommand gets the IsCommand of the SetGraphPropertiesRequest.

func (*SetGraphPropertiesRequest) GetName

func (m *SetGraphPropertiesRequest) GetName() (x string)

GetName gets the Name of the SetGraphPropertiesRequest.

func (*SetGraphPropertiesRequest) GetPackagePath

func (m *SetGraphPropertiesRequest) GetPackagePath() (x string)

GetPackagePath gets the PackagePath of the SetGraphPropertiesRequest.

func (*SetGraphPropertiesRequest) Marshal

func (m *SetGraphPropertiesRequest) Marshal() []byte

Marshal marshals SetGraphPropertiesRequest to a slice of bytes.

func (*SetGraphPropertiesRequest) MarshalToWriter

func (m *SetGraphPropertiesRequest) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals SetGraphPropertiesRequest to the provided writer.

func (*SetGraphPropertiesRequest) Unmarshal

func (m *SetGraphPropertiesRequest) Unmarshal(rawBytes []byte) (*SetGraphPropertiesRequest, error)

Unmarshal unmarshals a SetGraphPropertiesRequest from a slice of bytes.

func (*SetGraphPropertiesRequest) UnmarshalFromReader

func (m *SetGraphPropertiesRequest) UnmarshalFromReader(reader jspb.Reader) *SetGraphPropertiesRequest

UnmarshalFromReader unmarshals a SetGraphPropertiesRequest from the provided reader.

type SetNodeRequest

type SetNodeRequest struct {
	Graph  string
	Node   string
	Config *NodeConfig
}

func (*SetNodeRequest) GetConfig

func (m *SetNodeRequest) GetConfig() (x *NodeConfig)

GetConfig gets the Config of the SetNodeRequest.

func (*SetNodeRequest) GetGraph

func (m *SetNodeRequest) GetGraph() (x string)

GetGraph gets the Graph of the SetNodeRequest.

func (*SetNodeRequest) GetNode

func (m *SetNodeRequest) GetNode() (x string)

GetNode gets the Node of the SetNodeRequest.

func (*SetNodeRequest) Marshal

func (m *SetNodeRequest) Marshal() []byte

Marshal marshals SetNodeRequest to a slice of bytes.

func (*SetNodeRequest) MarshalToWriter

func (m *SetNodeRequest) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals SetNodeRequest to the provided writer.

func (*SetNodeRequest) Unmarshal

func (m *SetNodeRequest) Unmarshal(rawBytes []byte) (*SetNodeRequest, error)

Unmarshal unmarshals a SetNodeRequest from a slice of bytes.

func (*SetNodeRequest) UnmarshalFromReader

func (m *SetNodeRequest) UnmarshalFromReader(reader jspb.Reader) *SetNodeRequest

UnmarshalFromReader unmarshals a SetNodeRequest from the provided reader.

type SetPositionRequest

type SetPositionRequest struct {
	Graph string
	Node  string
	X     float64
	Y     float64
}

func (*SetPositionRequest) GetGraph

func (m *SetPositionRequest) GetGraph() (x string)

GetGraph gets the Graph of the SetPositionRequest.

func (*SetPositionRequest) GetNode

func (m *SetPositionRequest) GetNode() (x string)

GetNode gets the Node of the SetPositionRequest.

func (*SetPositionRequest) GetX

func (m *SetPositionRequest) GetX() (x float64)

GetX gets the X of the SetPositionRequest.

func (*SetPositionRequest) GetY

func (m *SetPositionRequest) GetY() (x float64)

GetY gets the Y of the SetPositionRequest.

func (*SetPositionRequest) Marshal

func (m *SetPositionRequest) Marshal() []byte

Marshal marshals SetPositionRequest to a slice of bytes.

func (*SetPositionRequest) MarshalToWriter

func (m *SetPositionRequest) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals SetPositionRequest to the provided writer.

func (*SetPositionRequest) Unmarshal

func (m *SetPositionRequest) Unmarshal(rawBytes []byte) (*SetPositionRequest, error)

Unmarshal unmarshals a SetPositionRequest from a slice of bytes.

func (*SetPositionRequest) UnmarshalFromReader

func (m *SetPositionRequest) UnmarshalFromReader(reader jspb.Reader) *SetPositionRequest

UnmarshalFromReader unmarshals a SetPositionRequest from the provided reader.

type ShenzhenGoClient

type ShenzhenGoClient interface {
	// Action performs an action (save, generate, install/build, etc).
	Action(ctx context.Context, in *ActionRequest, opts ...grpcweb.CallOption) (ShenzhenGo_ActionClient, error)
	// Run runs the program.
	Run(ctx context.Context, opts ...grpcweb.CallOption) (ShenzhenGo_RunClient, error)
	// SetNode either creates a new channel (name == "", config != nil)
	// changes existing channel data such as name and attached pins (name is found, config != nil),
	// or deletes a channel (name is found, config == nil).
	SetChannel(ctx context.Context, in *SetChannelRequest, opts ...grpcweb.CallOption) (*Empty, error)
	// SetGraphProperties changes metdata such as name and package path.
	SetGraphProperties(ctx context.Context, in *SetGraphPropertiesRequest, opts ...grpcweb.CallOption) (*Empty, error)
	// SetNode either creates a new node (name == "", config != nil)
	// changes existing node such as name and multiplicity (name is found, config != nil),
	// or deletes a node (name is found, config == nil).
	SetNode(ctx context.Context, in *SetNodeRequest, opts ...grpcweb.CallOption) (*Empty, error)
	// SetPosition changes the node position in the diagram.
	SetPosition(ctx context.Context, in *SetPositionRequest, opts ...grpcweb.CallOption) (*Empty, error)
}

func NewShenzhenGoClient

func NewShenzhenGoClient(hostname string, opts ...grpcweb.DialOption) ShenzhenGoClient

NewShenzhenGoClient creates a new gRPC-Web client.

type ShenzhenGo_ActionClient

type ShenzhenGo_ActionClient interface {
	Recv() (*ActionResponse, error)
	grpcweb.ClientStream
}

type ShenzhenGo_RunClient

type ShenzhenGo_RunClient interface {
	Send(*Input) error
	Recv() (*Output, error)
	grpcweb.ClientStream
}

type UnimplementedShenzhenGoClient

type UnimplementedShenzhenGoClient struct{}

UnimplementedShenzhenGoClient is for embedding in test fakes.

func (UnimplementedShenzhenGoClient) Action

Action does nothing and returns nil, nil.

func (UnimplementedShenzhenGoClient) Run

Run does nothing and returns nil, nil.

func (UnimplementedShenzhenGoClient) SetChannel

SetChannel does nothing and returns nil, nil.

func (UnimplementedShenzhenGoClient) SetGraphProperties

SetGraphProperties does nothing and returns nil, nil.

func (UnimplementedShenzhenGoClient) SetNode

SetNode does nothing and returns nil, nil.

func (UnimplementedShenzhenGoClient) SetPosition

SetPosition does nothing and returns nil, nil.

Jump to

Keyboard shortcuts

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