server

package
v0.0.0-...-677ce44 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents template rendering server

func New

func New() *Server

New constructs a new instance of Server.

func (*Server) Render

func (me *Server) Render(
	ctx context.Context,
	req *rpc.RenderingRequest,
) (resp *rpc.RenderingResponse, err error)

Render sends the rendered template.

func (*Server) SetTemplate

func (me *Server) SetTemplate(tmpName string, tmp interfaces.ITemplate)

SetTemplate sets a template.

func (*Server) UnsetTemplate

func (me *Server) UnsetTemplate(tmpName string)

UnsetTemplate removes the specified template at tmpName

Jump to

Keyboard shortcuts

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