bookmark

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMessage

func MakeMessage(info *webpage.Info, prefixMsg string) string

Types

type Config

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

Config is configuration for bookmark

func New

func New(cacheDir string, logger *log.ZapEventLogger) (*Config, error)

New functions creates new Config instance.

func (*Config) Logger

func (cfg *Config) Logger() *zap.Logger

Logger method returns zap.Logger instance.

func (*Config) Lookup

func (cfg *Config) Lookup(ctx context.Context, urlStr string, saveFlag bool) (*webpage.Info, error)

Jump to

Keyboard shortcuts

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