Documentation
¶
Index ¶
- Constants
- type App
- func (a *App) AddDestination(ctx context.Context, name, url string) (id string, err error)
- func (a *App) ListDestinations(ctx context.Context) (_ []domain.Destination, err error)
- func (a *App) RemoveDestination(ctx context.Context, destinationID string, force bool) error
- func (a *App) Run(ctx context.Context) error
- func (a *App) StartDestination(ctx context.Context, destinationID string) error
- func (a *App) StopDestination(ctx context.Context, destinationID string) error
- func (a *App) UpdateDestination(ctx context.Context, destinationID string, name, url optional.V[string]) error
- type NewParams
Constants ¶
View Source
const DefaultServerAddr = "localhost:50051"
DefaultServerAddr is the default address for the client to connect to.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the client application.
func (*App) AddDestination ¶ added in v0.0.12
AddDestination adds a new destination to the server.
func (*App) ListDestinations ¶ added in v0.0.12
ListDestinations retrieves the list of destinations from the server.
func (*App) RemoveDestination ¶ added in v0.0.12
func (*App) Run ¶
Run starts the application, and blocks until it is closed.
It returns nil if the application was closed by the user, or an error if it closed for any other reason.
func (*App) StartDestination ¶ added in v0.0.12
func (*App) StopDestination ¶ added in v0.0.12
Click to show internal directories.
Click to hide internal directories.