pluginextensionv2

package
v0.0.0-...-34a2968 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRendererServer

func RegisterRendererServer(s *grpc.Server, srv RendererServer)

Types

type RenderRequest

type RenderRequest struct {
	Url                  string                 `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Width                int32                  `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
	Height               int32                  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	DeviceScaleFactor    float32                `protobuf:"fixed32,4,opt,name=deviceScaleFactor,proto3" json:"deviceScaleFactor,omitempty"`
	FilePath             string                 `protobuf:"bytes,5,opt,name=filePath,proto3" json:"filePath,omitempty"`
	RenderKey            string                 `protobuf:"bytes,6,opt,name=renderKey,proto3" json:"renderKey,omitempty"`
	Domain               string                 `protobuf:"bytes,7,opt,name=domain,proto3" json:"domain,omitempty"`
	Timeout              int32                  `protobuf:"varint,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Timezone             string                 `protobuf:"bytes,9,opt,name=timezone,proto3" json:"timezone,omitempty"`
	Headers              map[string]*StringList `` /* 156-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*RenderRequest) Descriptor

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

func (*RenderRequest) GetDeviceScaleFactor

func (m *RenderRequest) GetDeviceScaleFactor() float32

func (*RenderRequest) GetDomain

func (m *RenderRequest) GetDomain() string

func (*RenderRequest) GetFilePath

func (m *RenderRequest) GetFilePath() string

func (*RenderRequest) GetHeaders

func (m *RenderRequest) GetHeaders() map[string]*StringList

func (*RenderRequest) GetHeight

func (m *RenderRequest) GetHeight() int32

func (*RenderRequest) GetRenderKey

func (m *RenderRequest) GetRenderKey() string

func (*RenderRequest) GetTimeout

func (m *RenderRequest) GetTimeout() int32

func (*RenderRequest) GetTimezone

func (m *RenderRequest) GetTimezone() string

func (*RenderRequest) GetUrl

func (m *RenderRequest) GetUrl() string

func (*RenderRequest) GetWidth

func (m *RenderRequest) GetWidth() int32

func (*RenderRequest) ProtoMessage

func (*RenderRequest) ProtoMessage()

func (*RenderRequest) Reset

func (m *RenderRequest) Reset()

func (*RenderRequest) String

func (m *RenderRequest) String() string

func (*RenderRequest) XXX_DiscardUnknown

func (m *RenderRequest) XXX_DiscardUnknown()

func (*RenderRequest) XXX_Marshal

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

func (*RenderRequest) XXX_Merge

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

func (*RenderRequest) XXX_Size

func (m *RenderRequest) XXX_Size() int

func (*RenderRequest) XXX_Unmarshal

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

type RenderResponse

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

func (*RenderResponse) Descriptor

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

func (*RenderResponse) GetError

func (m *RenderResponse) GetError() string

func (*RenderResponse) ProtoMessage

func (*RenderResponse) ProtoMessage()

func (*RenderResponse) Reset

func (m *RenderResponse) Reset()

func (*RenderResponse) String

func (m *RenderResponse) String() string

func (*RenderResponse) XXX_DiscardUnknown

func (m *RenderResponse) XXX_DiscardUnknown()

func (*RenderResponse) XXX_Marshal

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

func (*RenderResponse) XXX_Merge

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

func (*RenderResponse) XXX_Size

func (m *RenderResponse) XXX_Size() int

func (*RenderResponse) XXX_Unmarshal

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

type RendererClient

type RendererClient interface {
	Render(ctx context.Context, in *RenderRequest, opts ...grpc.CallOption) (*RenderResponse, error)
}

RendererClient is the client API for Renderer service.

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

func NewRendererClient

func NewRendererClient(cc grpc.ClientConnInterface) RendererClient

type RendererGRPCClient

type RendererGRPCClient struct {
	RendererClient
}

func (*RendererGRPCClient) Render

type RendererGRPCPlugin

type RendererGRPCPlugin struct {
	plugin.NetRPCUnsupportedPlugin
}

func (*RendererGRPCPlugin) GRPCClient

func (p *RendererGRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*RendererGRPCPlugin) GRPCServer

func (p *RendererGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

type RendererPlugin

type RendererPlugin interface {
	RendererClient
}

type RendererServer

type RendererServer interface {
	Render(context.Context, *RenderRequest) (*RenderResponse, error)
}

RendererServer is the server API for Renderer service.

type StringList

type StringList struct {
	Values               []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StringList) Descriptor

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

func (*StringList) GetValues

func (m *StringList) GetValues() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) Reset

func (m *StringList) Reset()

func (*StringList) String

func (m *StringList) String() string

func (*StringList) XXX_DiscardUnknown

func (m *StringList) XXX_DiscardUnknown()

func (*StringList) XXX_Marshal

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

func (*StringList) XXX_Merge

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

func (*StringList) XXX_Size

func (m *StringList) XXX_Size() int

func (*StringList) XXX_Unmarshal

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

type UnimplementedRendererServer

type UnimplementedRendererServer struct {
}

UnimplementedRendererServer can be embedded to have forward compatible implementations.

func (*UnimplementedRendererServer) Render

Jump to

Keyboard shortcuts

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