api

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package api provides a versstile application programming interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application implements the API Port interface.

func NewApplication

func NewApplication(core Core) *Application

NewApplication creates a new instance of Application with the provided core.

func (Application) GetGenerateShortcode

func (a Application) GetGenerateShortcode(dc domain.Core) (*string, error)

GetGenerateShortcode delegates the shortcode generation to the underlying core.

func (Application) GetImportFile

func (a Application) GetImportFile(f string, dc domain.Core) ([]social.Service, error)

GetImportFile delegates the import file operation to the underlying core.

type Core

type Core interface {
	ImportFile(f string, dc domain.Core) ([]social.Service, error)
	GenerateShortcode(dc domain.Core) (*string, error)
}

Abstraction reflecting core exported functionality.

Jump to

Keyboard shortcuts

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