renderer

package
Version: v0.0.0-...-df1eb6b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRendererServer

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

Types

type GRPCClient

type GRPCClient struct {
	RendererClient
}

func (*GRPCClient) Render

func (m *GRPCClient) Render(ctx context.Context, req *RenderRequest) (*RenderResponse, error)

type GRPCServer

type GRPCServer struct {
	RendererPlugin
}

func (*GRPCServer) Render

func (m *GRPCServer) Render(ctx context.Context, req *RenderRequest) (*RenderResponse, error)

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"`
	Timeout              int32    `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Timezone             string   `protobuf:"bytes,5,opt,name=timezone,proto3" json:"timezone,omitempty"`
	Encoding             string   `protobuf:"bytes,6,opt,name=encoding,proto3" json:"encoding,omitempty"`
	FilePath             string   `protobuf:"bytes,7,opt,name=filePath,proto3" json:"filePath,omitempty"`
	RenderKey            string   `protobuf:"bytes,8,opt,name=renderKey,proto3" json:"renderKey,omitempty"`
	Domain               string   `protobuf:"bytes,9,opt,name=domain,proto3" json:"domain,omitempty"`
	Debug                bool     `protobuf:"varint,10,opt,name=debug,proto3" json:"debug,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RenderRequest) Descriptor

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

func (*RenderRequest) GetDebug

func (m *RenderRequest) GetDebug() bool

func (*RenderRequest) GetDomain

func (m *RenderRequest) GetDomain() string

func (*RenderRequest) GetEncoding

func (m *RenderRequest) GetEncoding() string

func (*RenderRequest) GetFilePath

func (m *RenderRequest) GetFilePath() string

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 (dst *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 (dst *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.ClientConn) RendererClient

type RendererPlugin

type RendererPlugin interface {
	Render(ctx context.Context, req *RenderRequest) (*RenderResponse, error)
}

type RendererPluginImpl

type RendererPluginImpl struct {
	plugin.NetRPCUnsupportedPlugin
	Plugin RendererPlugin
}

func (*RendererPluginImpl) GRPCClient

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

func (*RendererPluginImpl) GRPCServer

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

type RendererServer

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

RendererServer is the server API for Renderer service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL