sessions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Service

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

func New

func New(logger *zap.Logger, consul *api.Client) (*Service, error)

func (*Service) CreateRenew

func (s *Service) CreateRenew(ctx context.Context, ttl time.Duration, sessionName string) error

func (*Service) GetSessionID

func (s *Service) GetSessionID() <-chan string

Jump to

Keyboard shortcuts

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