Documentation ¶
Overview ¶
Package nqueens is a generated protocol buffer package.
It is generated from these files:
examples/nqueens/nqueens.proto
It has these top-level messages:
SubProblemRequest SubProblemResponse
Index ¶
Constants ¶
View Source
const Default_SubProblemRequest_SecondRow int32 = -1
Variables ¶
This section is empty.
Functions ¶
func RegisterNQueensService ¶
func RegisterNQueensService(service NQueensService)
Types ¶
type NQueensService ¶
type NQueensService interface {
Solve(req *SubProblemRequest, resp *SubProblemResponse) error
}
type NQueensServiceClient ¶
type NQueensServiceClient struct {
// contains filtered or unexported fields
}
func NewNQueensServiceClient ¶
func NewNQueensServiceClient(conn io.ReadWriteCloser) *NQueensServiceClient
func (*NQueensServiceClient) Close ¶
func (c *NQueensServiceClient) Close() error
func (*NQueensServiceClient) Solve ¶
func (c *NQueensServiceClient) Solve(req *SubProblemRequest, resp *SubProblemResponse) error
type SubProblemRequest ¶
type SubProblemRequest struct { Nqueens *int32 `protobuf:"varint,1,req,name=nqueens" json:"nqueens,omitempty"` FirstRow *int32 `protobuf:"varint,2,req,name=first_row" json:"first_row,omitempty"` SecondRow *int32 `protobuf:"varint,3,opt,name=second_row,def=-1" json:"second_row,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SubProblemRequest) GetFirstRow ¶
func (m *SubProblemRequest) GetFirstRow() int32
func (*SubProblemRequest) GetNqueens ¶
func (m *SubProblemRequest) GetNqueens() int32
func (*SubProblemRequest) GetSecondRow ¶
func (m *SubProblemRequest) GetSecondRow() int32
func (*SubProblemRequest) ProtoMessage ¶
func (*SubProblemRequest) ProtoMessage()
func (*SubProblemRequest) Reset ¶
func (m *SubProblemRequest) Reset()
func (*SubProblemRequest) String ¶
func (m *SubProblemRequest) String() string
type SubProblemResponse ¶
type SubProblemResponse struct { Count *int64 `protobuf:"varint,1,req,name=count" json:"count,omitempty"` Seconds *float64 `protobuf:"fixed64,2,req,name=seconds" json:"seconds,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SubProblemResponse) GetCount ¶
func (m *SubProblemResponse) GetCount() int64
func (*SubProblemResponse) GetSeconds ¶
func (m *SubProblemResponse) GetSeconds() float64
func (*SubProblemResponse) ProtoMessage ¶
func (*SubProblemResponse) ProtoMessage()
func (*SubProblemResponse) Reset ¶
func (m *SubProblemResponse) Reset()
func (*SubProblemResponse) String ¶
func (m *SubProblemResponse) String() string
Click to show internal directories.
Click to hide internal directories.