HostKit.Service (host_kit v0.1.0-beta.1)

Copy Markdown View Source

A named group of resources that make up an application or host capability.

Summary

Types

t()

@type t() :: %HostKit.Service{meta: map(), name: atom(), resources: [struct()]}

Functions

add_resource(service, resource)

@spec add_resource(
  t(),
  struct()
) :: t()

new(name, opts \\ [])

@spec new(
  atom(),
  keyword()
) :: t()