pb

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:
	github.com/tangfeixiong/go-to-kubernetes/rap/pb/server.proto

It has these top-level messages:
	VncReqResp

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthServer = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowServer   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterGorhServiceHandler

func RegisterGorhServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterGorhServiceHandler registers the http handlers for service GorhService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterGorhServiceHandlerFromEndpoint

func RegisterGorhServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterGorhServiceHandlerFromEndpoint is same as RegisterGorhServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterGorhServiceServer

func RegisterGorhServiceServer(s *grpc.Server, srv GorhServiceServer)

Types

type GorhServiceClient

type GorhServiceClient interface {
	WebsockifyVNC(ctx context.Context, in *VncReqResp, opts ...grpc.CallOption) (*VncReqResp, error)
}

func NewGorhServiceClient

func NewGorhServiceClient(cc *grpc.ClientConn) GorhServiceClient

type GorhServiceServer

type GorhServiceServer interface {
	WebsockifyVNC(context.Context, *VncReqResp) (*VncReqResp, error)
}

type VncReqResp

type VncReqResp struct {
	VncAddr      string `protobuf:"bytes,1,opt,name=vnc_addr,json=vncAddr,proto3" json:"vnc_addr,omitempty"`
	VncSecret    string `protobuf:"bytes,2,opt,name=vnc_secret,json=vncSecret,proto3" json:"vnc_secret,omitempty"`
	AuthToken    string `protobuf:"bytes,3,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
	StateCode    int32  `protobuf:"varint,4,opt,name=state_code,json=stateCode,proto3" json:"state_code,omitempty"`
	StateMessage string `protobuf:"bytes,5,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
	Token        string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	Thumbnail    []byte `protobuf:"bytes,7,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
}

func (*VncReqResp) Descriptor

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

func (*VncReqResp) GetAuthToken

func (m *VncReqResp) GetAuthToken() string

func (*VncReqResp) GetStateCode

func (m *VncReqResp) GetStateCode() int32

func (*VncReqResp) GetStateMessage

func (m *VncReqResp) GetStateMessage() string

func (*VncReqResp) GetThumbnail

func (m *VncReqResp) GetThumbnail() []byte

func (*VncReqResp) GetToken

func (m *VncReqResp) GetToken() string

func (*VncReqResp) GetVncAddr

func (m *VncReqResp) GetVncAddr() string

func (*VncReqResp) GetVncSecret

func (m *VncReqResp) GetVncSecret() string

func (*VncReqResp) Marshal

func (m *VncReqResp) Marshal() (dAtA []byte, err error)

func (*VncReqResp) MarshalTo

func (m *VncReqResp) MarshalTo(dAtA []byte) (int, error)

func (*VncReqResp) ProtoMessage

func (*VncReqResp) ProtoMessage()

func (*VncReqResp) Reset

func (m *VncReqResp) Reset()

func (*VncReqResp) Size

func (m *VncReqResp) Size() (n int)

func (*VncReqResp) String

func (m *VncReqResp) String() string

func (*VncReqResp) Unmarshal

func (m *VncReqResp) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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