simplepb

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSimpleGrpcServer

func RegisterSimpleGrpcServer(s *grpc.Server, srv SimpleGrpcServer)

Types

type GetStuffRequest

type GetStuffRequest struct {
	InnerStuff           string   `protobuf:"bytes,1,opt,name=innerStuff,proto3" json:"innerStuff,omitempty"`
	SensitiveStuff       string   `protobuf:"bytes,2,opt,name=sensitiveStuff,proto3" json:"sensitiveStuff,omitempty"`
	TimeStuff            string   `protobuf:"bytes,3,opt,name=timeStuff,proto3" json:"timeStuff,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStuffRequest) Descriptor

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

func (*GetStuffRequest) GetInnerStuff

func (m *GetStuffRequest) GetInnerStuff() string

func (*GetStuffRequest) GetSensitiveStuff

func (m *GetStuffRequest) GetSensitiveStuff() string

func (*GetStuffRequest) GetTimeStuff

func (m *GetStuffRequest) GetTimeStuff() string

func (*GetStuffRequest) ProtoMessage

func (*GetStuffRequest) ProtoMessage()

func (*GetStuffRequest) Reset

func (m *GetStuffRequest) Reset()

func (*GetStuffRequest) String

func (m *GetStuffRequest) String() string

func (*GetStuffRequest) XXX_DiscardUnknown

func (m *GetStuffRequest) XXX_DiscardUnknown()

func (*GetStuffRequest) XXX_Marshal

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

func (*GetStuffRequest) XXX_Merge

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

func (*GetStuffRequest) XXX_Size

func (m *GetStuffRequest) XXX_Size() int

func (*GetStuffRequest) XXX_Unmarshal

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

type GetStuffResponse

type GetStuffResponse struct {
	Data                 []*Item  `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStuffResponse) Descriptor

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

func (*GetStuffResponse) GetData

func (m *GetStuffResponse) GetData() []*Item

func (*GetStuffResponse) ProtoMessage

func (*GetStuffResponse) ProtoMessage()

func (*GetStuffResponse) Reset

func (m *GetStuffResponse) Reset()

func (*GetStuffResponse) String

func (m *GetStuffResponse) String() string

func (*GetStuffResponse) XXX_DiscardUnknown

func (m *GetStuffResponse) XXX_DiscardUnknown()

func (*GetStuffResponse) XXX_Marshal

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

func (*GetStuffResponse) XXX_Merge

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

func (*GetStuffResponse) XXX_Size

func (m *GetStuffResponse) XXX_Size() int

func (*GetStuffResponse) XXX_Unmarshal

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

type Item

type Item struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	A1                   string   `protobuf:"bytes,2,opt,name=A1,proto3" json:"A1,omitempty"`
	A2                   string   `protobuf:"bytes,3,opt,name=A2,proto3" json:"A2,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Item) Descriptor

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

func (*Item) GetA1

func (m *Item) GetA1() string

func (*Item) GetA2

func (m *Item) GetA2() string

func (*Item) GetName

func (m *Item) GetName() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

func (*Item) XXX_DiscardUnknown

func (m *Item) XXX_DiscardUnknown()

func (*Item) XXX_Marshal

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

func (*Item) XXX_Merge

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

func (*Item) XXX_Size

func (m *Item) XXX_Size() int

func (*Item) XXX_Unmarshal

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

type SimpleGrpcClient

type SimpleGrpcClient interface {
	GetStuff(ctx context.Context, in *GetStuffRequest, opts ...grpc.CallOption) (*GetStuffResponse, error)
}

SimpleGrpcClient is the client API for SimpleGrpc service.

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

func NewSimpleGrpcClient

func NewSimpleGrpcClient(cc grpc.ClientConnInterface) SimpleGrpcClient

type SimpleGrpcServer

type SimpleGrpcServer interface {
	GetStuff(context.Context, *GetStuffRequest) (*GetStuffResponse, error)
}

SimpleGrpcServer is the server API for SimpleGrpc service.

type UnimplementedSimpleGrpcServer

type UnimplementedSimpleGrpcServer struct {
}

UnimplementedSimpleGrpcServer can be embedded to have forward compatible implementations.

func (*UnimplementedSimpleGrpcServer) GetStuff

Jump to

Keyboard shortcuts

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