jobs

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

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

Go to latest
Published: Feb 27, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Job_TypeID = 0xa05b60b71ca38848

Job_TypeID is the unique identifier for the type Job.

View Source
const Service_TypeID = 0xb8745454d013cbf0

Service_TypeID is the unique identifier for the type Service.

View Source
const Service_nextJob_Params_TypeID = 0xea3ba97e764a031c

Service_nextJob_Params_TypeID is the unique identifier for the type Service_nextJob_Params.

View Source
const Service_nextJob_Results_TypeID = 0xe067ec22521ebebb

Service_nextJob_Results_TypeID is the unique identifier for the type Service_nextJob_Results.

Variables

This section is empty.

Functions

func Service_Methods

func Service_Methods(methods []server.Method, s Service_Server) []server.Method

Service_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Service_NewServer

func Service_NewServer(s Service_Server, policy *server.Policy) *server.Server

Service_NewServer creates a new Server from an implementation of Service_Server.

Types

type Job

type Job struct{ capnp.Struct }

func NewJob

func NewJob(s *capnp.Segment) (Job, error)

func NewRootJob

func NewRootJob(s *capnp.Segment) (Job, error)

func ReadRootJob

func ReadRootJob(msg *capnp.Message) (Job, error)

func (Job) HasLatLngCoords

func (s Job) HasLatLngCoords() bool

func (Job) LatLngCoords

func (s Job) LatLngCoords() (geo.LatLonCoord_List, error)

func (Job) NewLatLngCoords

func (s Job) NewLatLngCoords(n int32) (geo.LatLonCoord_List, error)

NewLatLngCoords sets the latLngCoords field to a newly allocated geo.LatLonCoord_List, preferring placement in s's segment.

func (Job) NoFurtherJobs

func (s Job) NoFurtherJobs() bool

func (Job) SetLatLngCoords

func (s Job) SetLatLngCoords(v geo.LatLonCoord_List) error

func (Job) SetNoFurtherJobs

func (s Job) SetNoFurtherJobs(v bool)

func (Job) String

func (s Job) String() string

type Job_Future

type Job_Future struct{ *capnp.Future }

Job_Future is a wrapper for a Job promised by a client call.

func (Job_Future) Struct

func (p Job_Future) Struct() (Job, error)

type Job_List

type Job_List struct{ capnp.List }

Job_List is a list of Job.

func NewJob_List

func NewJob_List(s *capnp.Segment, sz int32) (Job_List, error)

NewJob creates a new list of Job.

func (Job_List) At

func (s Job_List) At(i int) Job

func (Job_List) Set

func (s Job_List) Set(i int, v Job) error

func (Job_List) String

func (s Job_List) String() string

type Service

type Service struct{ Client *capnp.Client }

func Service_ServerToClient

func Service_ServerToClient(s Service_Server, policy *server.Policy) Service

Service_ServerToClient creates a new Client from an implementation of Service_Server. The caller is responsible for calling Release on the returned Client.

func (Service) AddRef

func (c Service) AddRef() Service

func (Service) Release

func (c Service) Release()

type Service_Server

type Service_Server interface {
	NextJob(context.Context, Service_nextJob) error
}

A Service_Server is a Service with a local implementation.

type Service_nextJob

type Service_nextJob struct {
	*server.Call
}

Service_nextJob holds the state for a server call to Service.nextJob. See server.Call for documentation.

func (Service_nextJob) AllocResults

func (c Service_nextJob) AllocResults() (Service_nextJob_Results, error)

AllocResults allocates the results struct.

func (Service_nextJob) Args

Args returns the call's arguments.

type Service_nextJob_Params

type Service_nextJob_Params struct{ capnp.Struct }

func NewRootService_nextJob_Params

func NewRootService_nextJob_Params(s *capnp.Segment) (Service_nextJob_Params, error)

func NewService_nextJob_Params

func NewService_nextJob_Params(s *capnp.Segment) (Service_nextJob_Params, error)

func ReadRootService_nextJob_Params

func ReadRootService_nextJob_Params(msg *capnp.Message) (Service_nextJob_Params, error)

func (Service_nextJob_Params) String

func (s Service_nextJob_Params) String() string

type Service_nextJob_Params_Future

type Service_nextJob_Params_Future struct{ *capnp.Future }

Service_nextJob_Params_Future is a wrapper for a Service_nextJob_Params promised by a client call.

func (Service_nextJob_Params_Future) Struct

type Service_nextJob_Params_List

type Service_nextJob_Params_List struct{ capnp.List }

Service_nextJob_Params_List is a list of Service_nextJob_Params.

func NewService_nextJob_Params_List

func NewService_nextJob_Params_List(s *capnp.Segment, sz int32) (Service_nextJob_Params_List, error)

NewService_nextJob_Params creates a new list of Service_nextJob_Params.

func (Service_nextJob_Params_List) At

func (Service_nextJob_Params_List) Set

func (Service_nextJob_Params_List) String

type Service_nextJob_Results

type Service_nextJob_Results struct{ capnp.Struct }

func NewRootService_nextJob_Results

func NewRootService_nextJob_Results(s *capnp.Segment) (Service_nextJob_Results, error)

func NewService_nextJob_Results

func NewService_nextJob_Results(s *capnp.Segment) (Service_nextJob_Results, error)

func ReadRootService_nextJob_Results

func ReadRootService_nextJob_Results(msg *capnp.Message) (Service_nextJob_Results, error)

func (Service_nextJob_Results) HasJob

func (s Service_nextJob_Results) HasJob() bool

func (Service_nextJob_Results) Job

func (s Service_nextJob_Results) Job() (Job, error)

func (Service_nextJob_Results) NewJob

func (s Service_nextJob_Results) NewJob() (Job, error)

NewJob sets the job field to a newly allocated Job struct, preferring placement in s's segment.

func (Service_nextJob_Results) SetJob

func (s Service_nextJob_Results) SetJob(v Job) error

func (Service_nextJob_Results) String

func (s Service_nextJob_Results) String() string

type Service_nextJob_Results_Future

type Service_nextJob_Results_Future struct{ *capnp.Future }

Service_nextJob_Results_Future is a wrapper for a Service_nextJob_Results promised by a client call.

func (Service_nextJob_Results_Future) Job

func (Service_nextJob_Results_Future) Struct

type Service_nextJob_Results_List

type Service_nextJob_Results_List struct{ capnp.List }

Service_nextJob_Results_List is a list of Service_nextJob_Results.

func NewService_nextJob_Results_List

func NewService_nextJob_Results_List(s *capnp.Segment, sz int32) (Service_nextJob_Results_List, error)

NewService_nextJob_Results creates a new list of Service_nextJob_Results.

func (Service_nextJob_Results_List) At

func (Service_nextJob_Results_List) Set

func (Service_nextJob_Results_List) String

Jump to

Keyboard shortcuts

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