Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	Service

	AuthRequest(*http.Request) error
	AuthLogin(context.Context) error
	AuthLogout(context.Context) error
}

type Manager

type Manager interface {
	Add(Service)
	AddFactory(ServiceFactory)
	Get(service.Type, string) (Service, error)
}

func NewDefaultManager

func NewDefaultManager() Manager

type Service

type Service interface {
	Name() string
	Type() service.Type
	Version() string
}

type ServiceFactory added in v0.17.0

type ServiceFactory interface {
	New(string) Service
	Type() service.Type
	Version() string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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