sudoku

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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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