ServiceHost class

ServiceHost equivalent

Constructors

ServiceHost({String? host, String? webhookSecret, int? port, String? name})

Properties

hashCode int
The hash code for this object.
no setterinherited
host String
final
name String?
final
paths List<ServicePath<Portable>>
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
webhookSecret String?
final

Methods

addPath<T extends Portable>(String path, {required Portable factory(), String? identity, ApiScope? permissions}) → void
Register a path with a factory that constructs the Portable instance
getServiceSpec({required String image, String? command, List<EnvironmentVariable>? environment}) → ServiceSpec
get_service_spec
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() Future<void>
Equivalent to run that waits for SIGTERM/SIGABRT
start() Future<void>
stop() Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited