Documentation ¶
Index ¶
- func Fizzbuzz(i int64) string
- func RegisterFizzBuzzServer(s *grpc.Server, srv FizzBuzzServer)
- type FizzBuzzClient
- type FizzBuzzRequest
- func (*FizzBuzzRequest) Descriptor() ([]byte, []int)
- func (m *FizzBuzzRequest) GetEnd() int64
- func (m *FizzBuzzRequest) GetStart() int64
- func (*FizzBuzzRequest) ProtoMessage()
- func (m *FizzBuzzRequest) Reset()
- func (m *FizzBuzzRequest) String() string
- func (m *FizzBuzzRequest) XXX_DiscardUnknown()
- func (m *FizzBuzzRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FizzBuzzRequest) XXX_Merge(src proto.Message)
- func (m *FizzBuzzRequest) XXX_Size() int
- func (m *FizzBuzzRequest) XXX_Unmarshal(b []byte) error
- type FizzBuzzResponse
- func (*FizzBuzzResponse) Descriptor() ([]byte, []int)
- func (m *FizzBuzzResponse) GetSequence() []string
- func (m *FizzBuzzResponse) GetSuccess() bool
- func (*FizzBuzzResponse) ProtoMessage()
- func (m *FizzBuzzResponse) Reset()
- func (m *FizzBuzzResponse) String() string
- func (m *FizzBuzzResponse) XXX_DiscardUnknown()
- func (m *FizzBuzzResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FizzBuzzResponse) XXX_Merge(src proto.Message)
- func (m *FizzBuzzResponse) XXX_Size() int
- func (m *FizzBuzzResponse) XXX_Unmarshal(b []byte) error
- type FizzBuzzServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFizzBuzzServer ¶
func RegisterFizzBuzzServer(s *grpc.Server, srv FizzBuzzServer)
Types ¶
type FizzBuzzClient ¶
type FizzBuzzClient interface {
GetFizzBuzzSequence(ctx context.Context, in *FizzBuzzRequest, opts ...grpc.CallOption) (*FizzBuzzResponse, error)
}
FizzBuzzClient is the client API for FizzBuzz service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFizzBuzzClient ¶
func NewFizzBuzzClient(cc *grpc.ClientConn) FizzBuzzClient
type FizzBuzzRequest ¶
type FizzBuzzRequest struct { Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FizzBuzzRequest) Descriptor ¶
func (*FizzBuzzRequest) Descriptor() ([]byte, []int)
func (*FizzBuzzRequest) GetEnd ¶
func (m *FizzBuzzRequest) GetEnd() int64
func (*FizzBuzzRequest) GetStart ¶
func (m *FizzBuzzRequest) GetStart() int64
func (*FizzBuzzRequest) ProtoMessage ¶
func (*FizzBuzzRequest) ProtoMessage()
func (*FizzBuzzRequest) Reset ¶
func (m *FizzBuzzRequest) Reset()
func (*FizzBuzzRequest) String ¶
func (m *FizzBuzzRequest) String() string
func (*FizzBuzzRequest) XXX_DiscardUnknown ¶
func (m *FizzBuzzRequest) XXX_DiscardUnknown()
func (*FizzBuzzRequest) XXX_Marshal ¶
func (m *FizzBuzzRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FizzBuzzRequest) XXX_Merge ¶
func (m *FizzBuzzRequest) XXX_Merge(src proto.Message)
func (*FizzBuzzRequest) XXX_Size ¶
func (m *FizzBuzzRequest) XXX_Size() int
func (*FizzBuzzRequest) XXX_Unmarshal ¶
func (m *FizzBuzzRequest) XXX_Unmarshal(b []byte) error
type FizzBuzzResponse ¶
type FizzBuzzResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Sequence []string `protobuf:"bytes,2,rep,name=sequence,proto3" json:"sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FizzBuzzResponse) Descriptor ¶
func (*FizzBuzzResponse) Descriptor() ([]byte, []int)
func (*FizzBuzzResponse) GetSequence ¶
func (m *FizzBuzzResponse) GetSequence() []string
func (*FizzBuzzResponse) GetSuccess ¶
func (m *FizzBuzzResponse) GetSuccess() bool
func (*FizzBuzzResponse) ProtoMessage ¶
func (*FizzBuzzResponse) ProtoMessage()
func (*FizzBuzzResponse) Reset ¶
func (m *FizzBuzzResponse) Reset()
func (*FizzBuzzResponse) String ¶
func (m *FizzBuzzResponse) String() string
func (*FizzBuzzResponse) XXX_DiscardUnknown ¶
func (m *FizzBuzzResponse) XXX_DiscardUnknown()
func (*FizzBuzzResponse) XXX_Marshal ¶
func (m *FizzBuzzResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FizzBuzzResponse) XXX_Merge ¶
func (m *FizzBuzzResponse) XXX_Merge(src proto.Message)
func (*FizzBuzzResponse) XXX_Size ¶
func (m *FizzBuzzResponse) XXX_Size() int
func (*FizzBuzzResponse) XXX_Unmarshal ¶
func (m *FizzBuzzResponse) XXX_Unmarshal(b []byte) error
type FizzBuzzServer ¶
type FizzBuzzServer interface {
GetFizzBuzzSequence(context.Context, *FizzBuzzRequest) (*FizzBuzzResponse, error)
}
FizzBuzzServer is the server API for FizzBuzz service.
Click to show internal directories.
Click to hide internal directories.