kit: github.com/go-kit/kit/examples/addsvc/pb Index | Files

package pb

import "github.com/go-kit/kit/examples/addsvc/pb"

Index

Package Files

addsvc.pb.go

func RegisterAddServer Uses

func RegisterAddServer(s *grpc.Server, srv AddServer)

type AddClient Uses

type AddClient interface {
    // Sums two integers.
    Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumReply, error)
    // Concatenates two strings
    Concat(ctx context.Context, in *ConcatRequest, opts ...grpc.CallOption) (*ConcatReply, error)
}

AddClient is the client API for Add service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAddClient Uses

func NewAddClient(cc *grpc.ClientConn) AddClient

type AddServer Uses

type AddServer interface {
    // Sums two integers.
    Sum(context.Context, *SumRequest) (*SumReply, error)
    // Concatenates two strings
    Concat(context.Context, *ConcatRequest) (*ConcatReply, error)
}

AddServer is the server API for Add service.

type ConcatReply Uses

type ConcatReply struct {
    V                    string   `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"`
    Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The Concat response contains the result of the concatenation.

func (*ConcatReply) Descriptor Uses

func (*ConcatReply) Descriptor() ([]byte, []int)

func (*ConcatReply) GetErr Uses

func (m *ConcatReply) GetErr() string

func (*ConcatReply) GetV Uses

func (m *ConcatReply) GetV() string

func (*ConcatReply) ProtoMessage Uses

func (*ConcatReply) ProtoMessage()

func (*ConcatReply) Reset Uses

func (m *ConcatReply) Reset()

func (*ConcatReply) String Uses

func (m *ConcatReply) String() string

func (*ConcatReply) XXX_DiscardUnknown Uses

func (m *ConcatReply) XXX_DiscardUnknown()

func (*ConcatReply) XXX_Marshal Uses

func (m *ConcatReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConcatReply) XXX_Merge Uses

func (m *ConcatReply) XXX_Merge(src proto.Message)

func (*ConcatReply) XXX_Size Uses

func (m *ConcatReply) XXX_Size() int

func (*ConcatReply) XXX_Unmarshal Uses

func (m *ConcatReply) XXX_Unmarshal(b []byte) error

type ConcatRequest Uses

type ConcatRequest struct {
    A                    string   `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
    B                    string   `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The Concat request contains two parameters.

func (*ConcatRequest) Descriptor Uses

func (*ConcatRequest) Descriptor() ([]byte, []int)

func (*ConcatRequest) GetA Uses

func (m *ConcatRequest) GetA() string

func (*ConcatRequest) GetB Uses

func (m *ConcatRequest) GetB() string

func (*ConcatRequest) ProtoMessage Uses

func (*ConcatRequest) ProtoMessage()

func (*ConcatRequest) Reset Uses

func (m *ConcatRequest) Reset()

func (*ConcatRequest) String Uses

func (m *ConcatRequest) String() string

func (*ConcatRequest) XXX_DiscardUnknown Uses

func (m *ConcatRequest) XXX_DiscardUnknown()

func (*ConcatRequest) XXX_Marshal Uses

func (m *ConcatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConcatRequest) XXX_Merge Uses

func (m *ConcatRequest) XXX_Merge(src proto.Message)

func (*ConcatRequest) XXX_Size Uses

func (m *ConcatRequest) XXX_Size() int

func (*ConcatRequest) XXX_Unmarshal Uses

func (m *ConcatRequest) XXX_Unmarshal(b []byte) error

type SumReply Uses

type SumReply struct {
    V                    int64    `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"`
    Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The sum response contains the result of the calculation.

func (*SumReply) Descriptor Uses

func (*SumReply) Descriptor() ([]byte, []int)

func (*SumReply) GetErr Uses

func (m *SumReply) GetErr() string

func (*SumReply) GetV Uses

func (m *SumReply) GetV() int64

func (*SumReply) ProtoMessage Uses

func (*SumReply) ProtoMessage()

func (*SumReply) Reset Uses

func (m *SumReply) Reset()

func (*SumReply) String Uses

func (m *SumReply) String() string

func (*SumReply) XXX_DiscardUnknown Uses

func (m *SumReply) XXX_DiscardUnknown()

func (*SumReply) XXX_Marshal Uses

func (m *SumReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SumReply) XXX_Merge Uses

func (m *SumReply) XXX_Merge(src proto.Message)

func (*SumReply) XXX_Size Uses

func (m *SumReply) XXX_Size() int

func (*SumReply) XXX_Unmarshal Uses

func (m *SumReply) XXX_Unmarshal(b []byte) error

type SumRequest Uses

type SumRequest struct {
    A                    int64    `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
    B                    int64    `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The sum request contains two parameters.

func (*SumRequest) Descriptor Uses

func (*SumRequest) Descriptor() ([]byte, []int)

func (*SumRequest) GetA Uses

func (m *SumRequest) GetA() int64

func (*SumRequest) GetB Uses

func (m *SumRequest) GetB() int64

func (*SumRequest) ProtoMessage Uses

func (*SumRequest) ProtoMessage()

func (*SumRequest) Reset Uses

func (m *SumRequest) Reset()

func (*SumRequest) String Uses

func (m *SumRequest) String() string

func (*SumRequest) XXX_DiscardUnknown Uses

func (m *SumRequest) XXX_DiscardUnknown()

func (*SumRequest) XXX_Marshal Uses

func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SumRequest) XXX_Merge Uses

func (m *SumRequest) XXX_Merge(src proto.Message)

func (*SumRequest) XXX_Size Uses

func (m *SumRequest) XXX_Size() int

func (*SumRequest) XXX_Unmarshal Uses

func (m *SumRequest) XXX_Unmarshal(b []byte) error

Package pb imports 5 packages (graph) and is imported by 54 packages. Updated 2018-12-08. Refresh now. Tools for package owners.