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 ¶
- Variables
- type ActionRequest
- func (m *ActionRequest) GetAction() (x ActionRequest_Action)
- func (m *ActionRequest) GetGraph() (x string)
- func (m *ActionRequest) Marshal() []byte
- func (m *ActionRequest) MarshalToWriter(writer jspb.Writer)
- func (m *ActionRequest) Unmarshal(rawBytes []byte) (*ActionRequest, error)
- func (m *ActionRequest) UnmarshalFromReader(reader jspb.Reader) *ActionRequest
- type ActionRequest_Action
- type ActionResponse
- func (m *ActionResponse) GetOutput() (x string)
- func (m *ActionResponse) Marshal() []byte
- func (m *ActionResponse) MarshalToWriter(writer jspb.Writer)
- func (m *ActionResponse) Unmarshal(rawBytes []byte) (*ActionResponse, error)
- func (m *ActionResponse) UnmarshalFromReader(reader jspb.Reader) *ActionResponse
- type ChannelConfig
- func (m *ChannelConfig) GetCap() (x uint64)
- func (m *ChannelConfig) GetName() (x string)
- func (m *ChannelConfig) GetPins() (x []*NodePin)
- func (m *ChannelConfig) Marshal() []byte
- func (m *ChannelConfig) MarshalToWriter(writer jspb.Writer)
- func (m *ChannelConfig) Unmarshal(rawBytes []byte) (*ChannelConfig, error)
- func (m *ChannelConfig) UnmarshalFromReader(reader jspb.Reader) *ChannelConfig
- type Empty
- type Input
- type NodeConfig
- func (m *NodeConfig) GetComment() (x string)
- func (m *NodeConfig) GetEnabled() (x bool)
- func (m *NodeConfig) GetMultiplicity() (x string)
- func (m *NodeConfig) GetName() (x string)
- func (m *NodeConfig) GetPartCfg() (x []byte)
- func (m *NodeConfig) GetPartType() (x string)
- func (m *NodeConfig) GetWait() (x bool)
- func (m *NodeConfig) GetX() (x float64)
- func (m *NodeConfig) GetY() (x float64)
- func (m *NodeConfig) Marshal() []byte
- func (m *NodeConfig) MarshalToWriter(writer jspb.Writer)
- func (m *NodeConfig) Unmarshal(rawBytes []byte) (*NodeConfig, error)
- func (m *NodeConfig) UnmarshalFromReader(reader jspb.Reader) *NodeConfig
- type NodePin
- type Output
- type SetChannelRequest
- func (m *SetChannelRequest) GetChannel() (x string)
- func (m *SetChannelRequest) GetConfig() (x *ChannelConfig)
- func (m *SetChannelRequest) GetGraph() (x string)
- func (m *SetChannelRequest) Marshal() []byte
- func (m *SetChannelRequest) MarshalToWriter(writer jspb.Writer)
- func (m *SetChannelRequest) Unmarshal(rawBytes []byte) (*SetChannelRequest, error)
- func (m *SetChannelRequest) UnmarshalFromReader(reader jspb.Reader) *SetChannelRequest
- type SetGraphPropertiesRequest
- func (m *SetGraphPropertiesRequest) GetGraph() (x string)
- func (m *SetGraphPropertiesRequest) GetIsCommand() (x bool)
- func (m *SetGraphPropertiesRequest) GetName() (x string)
- func (m *SetGraphPropertiesRequest) GetPackagePath() (x string)
- func (m *SetGraphPropertiesRequest) Marshal() []byte
- func (m *SetGraphPropertiesRequest) MarshalToWriter(writer jspb.Writer)
- func (m *SetGraphPropertiesRequest) Unmarshal(rawBytes []byte) (*SetGraphPropertiesRequest, error)
- func (m *SetGraphPropertiesRequest) UnmarshalFromReader(reader jspb.Reader) *SetGraphPropertiesRequest
- type SetNodeRequest
- func (m *SetNodeRequest) GetConfig() (x *NodeConfig)
- func (m *SetNodeRequest) GetGraph() (x string)
- func (m *SetNodeRequest) GetNode() (x string)
- func (m *SetNodeRequest) Marshal() []byte
- func (m *SetNodeRequest) MarshalToWriter(writer jspb.Writer)
- func (m *SetNodeRequest) Unmarshal(rawBytes []byte) (*SetNodeRequest, error)
- func (m *SetNodeRequest) UnmarshalFromReader(reader jspb.Reader) *SetNodeRequest
- type SetPositionRequest
- func (m *SetPositionRequest) GetGraph() (x string)
- func (m *SetPositionRequest) GetNode() (x string)
- func (m *SetPositionRequest) GetX() (x float64)
- func (m *SetPositionRequest) GetY() (x float64)
- func (m *SetPositionRequest) Marshal() []byte
- func (m *SetPositionRequest) MarshalToWriter(writer jspb.Writer)
- func (m *SetPositionRequest) Unmarshal(rawBytes []byte) (*SetPositionRequest, error)
- func (m *SetPositionRequest) UnmarshalFromReader(reader jspb.Reader) *SetPositionRequest
- type ShenzhenGoClient
- type ShenzhenGo_ActionClient
- type ShenzhenGo_RunClient
- type UnimplementedShenzhenGoClient
- func (UnimplementedShenzhenGoClient) Action(ctx context.Context, in *ActionRequest, opts ...grpcweb.CallOption) (ShenzhenGo_ActionClient, error)
- func (UnimplementedShenzhenGoClient) Run(ctx context.Context, opts ...grpcweb.CallOption) (ShenzhenGo_RunClient, error)
- func (UnimplementedShenzhenGoClient) SetChannel(ctx context.Context, in *SetChannelRequest, opts ...grpcweb.CallOption) (*Empty, error)
- func (UnimplementedShenzhenGoClient) SetGraphProperties(ctx context.Context, in *SetGraphPropertiesRequest, opts ...grpcweb.CallOption) (*Empty, error)
- func (UnimplementedShenzhenGoClient) SetNode(ctx context.Context, in *SetNodeRequest, opts ...grpcweb.CallOption) (*Empty, error)
- func (UnimplementedShenzhenGoClient) SetPosition(ctx context.Context, in *SetPositionRequest, opts ...grpcweb.CallOption) (*Empty, error)
Constants ¶
This section is empty.
Variables ¶
var ActionRequest_Action_name = map[int]string{
0: "SAVE",
1: "REVERT",
2: "GENERATE",
3: "BUILD",
4: "INSTALL",
}
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 ¶
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) MarshalToWriter ¶
MarshalToWriter marshals Empty to the provided writer.
type Input ¶
func (*Input) MarshalToWriter ¶
MarshalToWriter marshals Input to the provided writer.
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 ¶
func (*NodePin) MarshalToWriter ¶
MarshalToWriter marshals NodePin to the provided writer.
type Output ¶
func (*Output) MarshalToWriter ¶
MarshalToWriter marshals Output to the provided writer.
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 ¶
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 UnimplementedShenzhenGoClient ¶
type UnimplementedShenzhenGoClient struct{}
UnimplementedShenzhenGoClient is for embedding in test fakes.
func (UnimplementedShenzhenGoClient) Action ¶
func (UnimplementedShenzhenGoClient) Action(ctx context.Context, in *ActionRequest, opts ...grpcweb.CallOption) (ShenzhenGo_ActionClient, error)
Action does nothing and returns nil, nil.
func (UnimplementedShenzhenGoClient) Run ¶
func (UnimplementedShenzhenGoClient) Run(ctx context.Context, opts ...grpcweb.CallOption) (ShenzhenGo_RunClient, error)
Run does nothing and returns nil, nil.
func (UnimplementedShenzhenGoClient) SetChannel ¶
func (UnimplementedShenzhenGoClient) SetChannel(ctx context.Context, in *SetChannelRequest, opts ...grpcweb.CallOption) (*Empty, error)
SetChannel does nothing and returns nil, nil.
func (UnimplementedShenzhenGoClient) SetGraphProperties ¶
func (UnimplementedShenzhenGoClient) SetGraphProperties(ctx context.Context, in *SetGraphPropertiesRequest, opts ...grpcweb.CallOption) (*Empty, error)
SetGraphProperties does nothing and returns nil, nil.
func (UnimplementedShenzhenGoClient) SetNode ¶
func (UnimplementedShenzhenGoClient) SetNode(ctx context.Context, in *SetNodeRequest, opts ...grpcweb.CallOption) (*Empty, error)
SetNode does nothing and returns nil, nil.
func (UnimplementedShenzhenGoClient) SetPosition ¶
func (UnimplementedShenzhenGoClient) SetPosition(ctx context.Context, in *SetPositionRequest, opts ...grpcweb.CallOption) (*Empty, error)
SetPosition does nothing and returns nil, nil.