nqueens

package
v1.0.1-0...-a8ab2d6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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