scriber

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package scriber contains adapters for transcribing a chat session.

Each scriber adapter should have a constructor, a configuration structure that can be directly embedded into the application's configuration (if needed), and should support the common port interfaces needed by the application service layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NilScribe

type NilScribe struct{}

func (NilScribe) Close

func (t NilScribe) Close() error

func (NilScribe) Entry

func (t NilScribe) Entry(model.ScribeEntry)

func (NilScribe) Footer

func (t NilScribe) Footer(model.ScribeFooter)

func (NilScribe) Header

func (t NilScribe) Header(model.ScribeHeader)

type TemplateScribe

type TemplateScribe struct {
	SaveDir   string
	SaveFile  string
	Templates struct {
		Header string
		Entry  string
		Footer string
	}
}

type TemplateScriber

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

func NewTemplateScribe

func NewTemplateScribe(cfg TemplateScribe) (*TemplateScriber, error)

func (TemplateScriber) Close

func (t TemplateScriber) Close() error

func (TemplateScriber) Entry

func (t TemplateScriber) Entry(entry model.ScribeEntry)

func (TemplateScriber) Footer

func (t TemplateScriber) Footer(outcome model.ScribeFooter)

func (TemplateScriber) Header

func (t TemplateScriber) Header(context model.ScribeHeader)

Jump to

Keyboard shortcuts

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