app

package
v0.0.0-...-6aec01b Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package app implements keepctl service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Log *logger.Logger

	Usecases    *usecase.UseCases
	Key         entity.Key
	AccessToken string
	// contains filtered or unexported fields
}

App implements client application for the keeper service.

func FromContext

func FromContext(ctx context.Context) (*App, error)

FromContext extracts App from provided context.

func New

func New(cfg *config.Config) (*App, error)

New creates and initializes new App object.

func (*App) Shutdown

func (a *App) Shutdown()

Shutdown gracefully stops client application.

func (*App) WithContext

func (a *App) WithContext(ctx context.Context) context.Context

WithContext injects App into provided context.

Jump to

Keyboard shortcuts

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