cookie

package
v0.1.67 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

func WithHTTPClient

func WithHTTPClient(h *http.Client) Option

type Service

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

func New

func New(cfg *config.Config, httpClient *http.Client, log *slog.Logger, opts ...Option) (*Service, error)

func (*Service) ClearCache

func (s *Service) ClearCache()

func (*Service) Editor

func (s *Service) Editor() authenticator.RequestEditor

Editor adds standard headers and ensures login happened before non-login calls. Use this with your generated clients’ RequestEditor hook, or call before building requests.

func (*Service) Init

func (s *Service) Init(ctx context.Context) error

func (*Service) IsAuthenticated

func (s *Service) IsAuthenticated() bool

func (*Service) Name

func (s *Service) Name() string

Jump to

Keyboard shortcuts

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