server

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(
	port int,
	labelStore labelstore.LabelStore,
	compiler compiler.Compiler,
	slideshow base.ServiceOptions,
	stackSize int,
	log *zap.Logger,
) error

Types

type Server

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

func NewServer

func NewServer(
	labelStore labelstore.LabelStore,
	compiler compiler.Compiler,
	slideShow base.ServiceOptions,
	stackSize int,
	log *zap.Logger,
) *Server

func (*Server) Classify

func (s *Server) Classify(
	ctx context.Context,
	label api.Label,
) (*api.Label, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port int) error

func (*Server) Sample

func (s *Server) Sample(
	ctx context.Context,
	req api.SampleRequest,
) (*api.SampleResponse, error)

Jump to

Keyboard shortcuts

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