Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllocatorDesc rpc.InterfaceDesc = descAllocator
AllocatorDesc describes the Allocator interface.
Functions ¶
This section is empty.
Types ¶
type AllocatorClientMethods ¶
type AllocatorClientMethods interface { // Create creates a new instance of the service. The instance's // blessings will be an extension of the blessings granted on this RPC. // It returns the object name of the new instance. Create(*context.T, ...rpc.CallOpt) (name string, _ error) // Delete deletes the instance with the given name. Delete(_ *context.T, name string, _ ...rpc.CallOpt) error // List returns a list of all the instances owned by the caller. List(*context.T, ...rpc.CallOpt) (names []string, _ error) }
AllocatorClientMethods is the client interface containing Allocator methods.
type AllocatorClientStub ¶
type AllocatorClientStub interface { AllocatorClientMethods rpc.UniversalServiceMethods }
AllocatorClientStub adds universal methods to AllocatorClientMethods.
func AllocatorClient ¶
func AllocatorClient(name string) AllocatorClientStub
AllocatorClient returns a client stub for Allocator.
type AllocatorServerMethods ¶
type AllocatorServerMethods interface { // Create creates a new instance of the service. The instance's // blessings will be an extension of the blessings granted on this RPC. // It returns the object name of the new instance. Create(*context.T, rpc.ServerCall) (name string, _ error) // Delete deletes the instance with the given name. Delete(_ *context.T, _ rpc.ServerCall, name string) error // List returns a list of all the instances owned by the caller. List(*context.T, rpc.ServerCall) (names []string, _ error) }
AllocatorServerMethods is the interface a server writer implements for Allocator.
type AllocatorServerStub ¶
type AllocatorServerStub interface { AllocatorServerStubMethods // Describe the Allocator interfaces. Describe__() []rpc.InterfaceDesc }
AllocatorServerStub adds universal methods to AllocatorServerStubMethods.
func AllocatorServer ¶
func AllocatorServer(impl AllocatorServerMethods) AllocatorServerStub
AllocatorServer returns a server stub for Allocator. It converts an implementation of AllocatorServerMethods into an object that may be used by rpc.Server.
type AllocatorServerStubMethods ¶
type AllocatorServerStubMethods AllocatorServerMethods
AllocatorServerStubMethods is the server interface containing Allocator methods, as expected by rpc.Server. There is no difference between this interface and AllocatorServerMethods since there are no streaming methods.
Directories
¶
Path | Synopsis |
---|---|
Runs the allocator service Usage: allocatord [flags] The allocatord flags are: -name= Name to publish for this service.
|
Runs the allocator service Usage: allocatord [flags] The allocatord flags are: -name= Name to publish for this service. |