pluginextensionv2

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rendererv2_proto protoreflect.FileDescriptor

Functions

func RegisterRendererServer

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

Types

type RenderCSVRequest

type RenderCSVRequest struct {
	Url       string                 `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	FilePath  string                 `protobuf:"bytes,2,opt,name=filePath,proto3" json:"filePath,omitempty"`
	RenderKey string                 `protobuf:"bytes,3,opt,name=renderKey,proto3" json:"renderKey,omitempty"`
	Domain    string                 `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"`
	Timeout   int32                  `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Timezone  string                 `protobuf:"bytes,6,opt,name=timezone,proto3" json:"timezone,omitempty"`
	Headers   map[string]*StringList `` /* 155-byte string literal not displayed */
	AuthToken string                 `protobuf:"bytes,8,opt,name=authToken,proto3" json:"authToken,omitempty"`
	// contains filtered or unexported fields
}

func (*RenderCSVRequest) Descriptor deprecated

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

Deprecated: Use RenderCSVRequest.ProtoReflect.Descriptor instead.

func (*RenderCSVRequest) GetAuthToken

func (x *RenderCSVRequest) GetAuthToken() string

func (*RenderCSVRequest) GetDomain

func (x *RenderCSVRequest) GetDomain() string

func (*RenderCSVRequest) GetFilePath

func (x *RenderCSVRequest) GetFilePath() string

func (*RenderCSVRequest) GetHeaders

func (x *RenderCSVRequest) GetHeaders() map[string]*StringList

func (*RenderCSVRequest) GetRenderKey

func (x *RenderCSVRequest) GetRenderKey() string

func (*RenderCSVRequest) GetTimeout

func (x *RenderCSVRequest) GetTimeout() int32

func (*RenderCSVRequest) GetTimezone

func (x *RenderCSVRequest) GetTimezone() string

func (*RenderCSVRequest) GetUrl

func (x *RenderCSVRequest) GetUrl() string

func (*RenderCSVRequest) ProtoMessage

func (*RenderCSVRequest) ProtoMessage()

func (*RenderCSVRequest) ProtoReflect

func (x *RenderCSVRequest) ProtoReflect() protoreflect.Message

func (*RenderCSVRequest) Reset

func (x *RenderCSVRequest) Reset()

func (*RenderCSVRequest) String

func (x *RenderCSVRequest) String() string

type RenderCSVResponse

type RenderCSVResponse struct {
	Error    string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"`
	// contains filtered or unexported fields
}

func (*RenderCSVResponse) Descriptor deprecated

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

Deprecated: Use RenderCSVResponse.ProtoReflect.Descriptor instead.

func (*RenderCSVResponse) GetError

func (x *RenderCSVResponse) GetError() string

func (*RenderCSVResponse) GetFileName

func (x *RenderCSVResponse) GetFileName() string

func (*RenderCSVResponse) ProtoMessage

func (*RenderCSVResponse) ProtoMessage()

func (*RenderCSVResponse) ProtoReflect

func (x *RenderCSVResponse) ProtoReflect() protoreflect.Message

func (*RenderCSVResponse) Reset

func (x *RenderCSVResponse) Reset()

func (*RenderCSVResponse) String

func (x *RenderCSVResponse) String() string

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 */
	AuthToken         string                 `protobuf:"bytes,11,opt,name=authToken,proto3" json:"authToken,omitempty"`
	// contains filtered or unexported fields
}

func (*RenderRequest) Descriptor deprecated

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

Deprecated: Use RenderRequest.ProtoReflect.Descriptor instead.

func (*RenderRequest) GetAuthToken

func (x *RenderRequest) GetAuthToken() string

func (*RenderRequest) GetDeviceScaleFactor

func (x *RenderRequest) GetDeviceScaleFactor() float32

func (*RenderRequest) GetDomain

func (x *RenderRequest) GetDomain() string

func (*RenderRequest) GetFilePath

func (x *RenderRequest) GetFilePath() string

func (*RenderRequest) GetHeaders

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

func (*RenderRequest) GetHeight

func (x *RenderRequest) GetHeight() int32

func (*RenderRequest) GetRenderKey

func (x *RenderRequest) GetRenderKey() string

func (*RenderRequest) GetTimeout

func (x *RenderRequest) GetTimeout() int32

func (*RenderRequest) GetTimezone

func (x *RenderRequest) GetTimezone() string

func (*RenderRequest) GetUrl

func (x *RenderRequest) GetUrl() string

func (*RenderRequest) GetWidth

func (x *RenderRequest) GetWidth() int32

func (*RenderRequest) ProtoMessage

func (*RenderRequest) ProtoMessage()

func (*RenderRequest) ProtoReflect

func (x *RenderRequest) ProtoReflect() protoreflect.Message

func (*RenderRequest) Reset

func (x *RenderRequest) Reset()

func (*RenderRequest) String

func (x *RenderRequest) String() string

type RenderResponse

type RenderResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RenderResponse) Descriptor deprecated

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

Deprecated: Use RenderResponse.ProtoReflect.Descriptor instead.

func (*RenderResponse) GetError

func (x *RenderResponse) GetError() string

func (*RenderResponse) ProtoMessage

func (*RenderResponse) ProtoMessage()

func (*RenderResponse) ProtoReflect

func (x *RenderResponse) ProtoReflect() protoreflect.Message

func (*RenderResponse) Reset

func (x *RenderResponse) Reset()

func (*RenderResponse) String

func (x *RenderResponse) String() string

type RendererClient

type RendererClient interface {
	Render(ctx context.Context, in *RenderRequest, opts ...grpc.CallOption) (*RenderResponse, error)
	RenderCSV(ctx context.Context, in *RenderCSVRequest, opts ...grpc.CallOption) (*RenderCSVResponse, 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)
	RenderCSV(context.Context, *RenderCSVRequest) (*RenderCSVResponse, 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"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

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

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetValues

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

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect

func (x *StringList) ProtoReflect() protoreflect.Message

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

type UnimplementedRendererServer

type UnimplementedRendererServer struct {
}

UnimplementedRendererServer can be embedded to have forward compatible implementations.

func (*UnimplementedRendererServer) Render

func (*UnimplementedRendererServer) RenderCSV

Jump to

Keyboard shortcuts

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