pb

package
v0.0.0-...-99cece9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStringServiceServer

func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)

Types

type StringRequest

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

func (*StringRequest) Descriptor

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

func (*StringRequest) GetA

func (m *StringRequest) GetA() string

func (*StringRequest) GetB

func (m *StringRequest) GetB() string

func (*StringRequest) GetRequestType

func (m *StringRequest) GetRequestType() string

func (*StringRequest) ProtoMessage

func (*StringRequest) ProtoMessage()

func (*StringRequest) Reset

func (m *StringRequest) Reset()

func (*StringRequest) String

func (m *StringRequest) String() string

func (*StringRequest) XXX_DiscardUnknown

func (m *StringRequest) XXX_DiscardUnknown()

func (*StringRequest) XXX_Marshal

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

func (*StringRequest) XXX_Merge

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

func (*StringRequest) XXX_Size

func (m *StringRequest) XXX_Size() int

func (*StringRequest) XXX_Unmarshal

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

type StringResponse

type StringResponse struct {
	Result               string   `protobuf:"bytes,1,opt,name=result,proto3" json:"result,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:"-"`
}

func (*StringResponse) Descriptor

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

func (*StringResponse) GetErr

func (m *StringResponse) GetErr() string

func (*StringResponse) GetResult

func (m *StringResponse) GetResult() string

func (*StringResponse) ProtoMessage

func (*StringResponse) ProtoMessage()

func (*StringResponse) Reset

func (m *StringResponse) Reset()

func (*StringResponse) String

func (m *StringResponse) String() string

func (*StringResponse) XXX_DiscardUnknown

func (m *StringResponse) XXX_DiscardUnknown()

func (*StringResponse) XXX_Marshal

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

func (*StringResponse) XXX_Merge

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

func (*StringResponse) XXX_Size

func (m *StringResponse) XXX_Size() int

func (*StringResponse) XXX_Unmarshal

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

type StringServiceClient

type StringServiceClient interface {
	Diff(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringResponse, error)
}

StringServiceClient is the client API for StringService service.

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

func NewStringServiceClient

func NewStringServiceClient(cc *grpc.ClientConn) StringServiceClient

type StringServiceServer

type StringServiceServer interface {
	Diff(context.Context, *StringRequest) (*StringResponse, error)
}

StringServiceServer is the server API for StringService service.

type UnimplementedStringServiceServer

type UnimplementedStringServiceServer struct {
}

UnimplementedStringServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStringServiceServer) Diff

Jump to

Keyboard shortcuts

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