Documentation ¶
Overview ¶
Package sudoku is a generated protocol buffer package.
It is generated from these files:
examples/sudoku/sudoku.proto
It has these top-level messages:
SudokuRequest SudokuResponse
Index ¶
Constants ¶
View Source
const Default_SudokuResponse_Solved bool = false
Variables ¶
This section is empty.
Functions ¶
func RegisterSudokuService ¶
func RegisterSudokuService(service SudokuService)
Types ¶
type SudokuRequest ¶
type SudokuRequest struct { Checkerboard *string `protobuf:"bytes,1,req,name=checkerboard" json:"checkerboard,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SudokuRequest) GetCheckerboard ¶
func (m *SudokuRequest) GetCheckerboard() string
func (*SudokuRequest) ProtoMessage ¶
func (*SudokuRequest) ProtoMessage()
func (*SudokuRequest) Reset ¶
func (m *SudokuRequest) Reset()
func (*SudokuRequest) String ¶
func (m *SudokuRequest) String() string
type SudokuResponse ¶
type SudokuResponse struct { Solved *bool `protobuf:"varint,1,opt,name=solved,def=0" json:"solved,omitempty"` Checkerboard *string `protobuf:"bytes,2,opt,name=checkerboard" json:"checkerboard,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SudokuResponse) GetCheckerboard ¶
func (m *SudokuResponse) GetCheckerboard() string
func (*SudokuResponse) GetSolved ¶
func (m *SudokuResponse) GetSolved() bool
func (*SudokuResponse) ProtoMessage ¶
func (*SudokuResponse) ProtoMessage()
func (*SudokuResponse) Reset ¶
func (m *SudokuResponse) Reset()
func (*SudokuResponse) String ¶
func (m *SudokuResponse) String() string
type SudokuService ¶
type SudokuService interface {
Solve(req *SudokuRequest, resp *SudokuResponse) error
}
type SudokuServiceClient ¶
type SudokuServiceClient struct {
// contains filtered or unexported fields
}
func NewSudokuServiceClient ¶
func NewSudokuServiceClient(conn io.ReadWriteCloser) *SudokuServiceClient
func (*SudokuServiceClient) Close ¶
func (c *SudokuServiceClient) Close() error
func (*SudokuServiceClient) Solve ¶
func (c *SudokuServiceClient) Solve(req *SudokuRequest, resp *SudokuResponse) error
Click to show internal directories.
Click to hide internal directories.