Documentation ¶
Overview ¶
Package serve implements the "jig serve" command, serving GRPC services via an evaluator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFSFromDirs ¶ added in v0.0.21
NewFSFromDirs combines the top level directories of multiple directories.
Types ¶
type Evaluator ¶ added in v0.0.21
func JsonnetEvaluator ¶ added in v0.0.21
func JsonnetEvaluator() Evaluator
type EvaluatorFunc ¶ added in v0.0.21
type Option ¶ added in v0.0.16
Option is a functional option to configure Server
func WithLogger ¶ added in v0.0.17
func WithProtosets ¶ added in v0.0.19
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶ added in v0.0.14
NewServer creates a new Server for given evaluator, e.g. Jsonnet and data Directories.
func (*Server) ListenAndServe ¶ added in v0.0.14
type TestServer ¶ added in v0.0.8
type TestServer struct { Server // contains filtered or unexported fields }
func NewTestServer ¶ added in v0.0.14
func NewTestServer(eval Evaluator, vfs fs.FS, options ...Option) *TestServer
NewTestServer starts and returns a new TestServer. The caller should call Stop when finished, to shut it down.
func (*TestServer) Addr ¶ added in v0.0.8
func (ts *TestServer) Addr() string
Click to show internal directories.
Click to hide internal directories.