hijack

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHTServiceServer

func RegisterHTServiceServer(s *grpc.Server, srv HTServiceServer)

Types

type HReply

type HReply struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message containing the data.

func (*HReply) Descriptor

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

func (*HReply) GetData

func (m *HReply) GetData() []byte

func (*HReply) ProtoMessage

func (*HReply) ProtoMessage()

func (*HReply) Reset

func (m *HReply) Reset()

func (*HReply) String

func (m *HReply) String() string

func (*HReply) XXX_DiscardUnknown

func (m *HReply) XXX_DiscardUnknown()

func (*HReply) XXX_Marshal

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

func (*HReply) XXX_Merge

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

func (*HReply) XXX_Size

func (m *HReply) XXX_Size() int

func (*HReply) XXX_Unmarshal

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

type HRequest

type HRequest struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message containing the data.

func (*HRequest) Descriptor

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

func (*HRequest) GetData

func (m *HRequest) GetData() []byte

func (*HRequest) ProtoMessage

func (*HRequest) ProtoMessage()

func (*HRequest) Reset

func (m *HRequest) Reset()

func (*HRequest) String

func (m *HRequest) String() string

func (*HRequest) XXX_DiscardUnknown

func (m *HRequest) XXX_DiscardUnknown()

func (*HRequest) XXX_Marshal

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

func (*HRequest) XXX_Merge

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

func (*HRequest) XXX_Size

func (m *HRequest) XXX_Size() int

func (*HRequest) XXX_Unmarshal

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

type HTServiceClient

type HTServiceClient interface {
	// Sends & Receive data
	HTunnel(ctx context.Context, opts ...grpc.CallOption) (HTService_HTunnelClient, error)
	// Say Hello
	HTHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

HTServiceClient is the client API for HTService service.

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

func NewHTServiceClient

func NewHTServiceClient(cc *grpc.ClientConn) HTServiceClient

type HTServiceServer

type HTServiceServer interface {
	// Sends & Receive data
	HTunnel(HTService_HTunnelServer) error
	// Say Hello
	HTHello(context.Context, *HelloRequest) (*HelloReply, error)
}

HTServiceServer is the server API for HTService service.

type HTService_HTunnelClient

type HTService_HTunnelClient interface {
	Send(*HRequest) error
	Recv() (*HReply, error)
	grpc.ClientStream
}

type HTService_HTunnelServer

type HTService_HTunnelServer interface {
	Send(*HReply) error
	Recv() (*HRequest, error)
	grpc.ServerStream
}

type HelloReply

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

The request message containing the data.

func (*HelloReply) Descriptor

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

func (*HelloReply) GetName

func (m *HelloReply) GetName() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

func (*HelloReply) XXX_DiscardUnknown

func (m *HelloReply) XXX_DiscardUnknown()

func (*HelloReply) XXX_Marshal

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

func (*HelloReply) XXX_Merge

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

func (*HelloReply) XXX_Size

func (m *HelloReply) XXX_Size() int

func (*HelloReply) XXX_Unmarshal

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

type HelloRequest

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

The request message containing the data.

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

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

func (*HelloRequest) XXX_Merge

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

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

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

type UnimplementedHTServiceServer

type UnimplementedHTServiceServer struct {
}

UnimplementedHTServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHTServiceServer) HTHello

func (*UnimplementedHTServiceServer) HTunnel

Jump to

Keyboard shortcuts

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