labels

package
v0.0.0-...-2eb00bf Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateLabelEndpoint

func MakeCreateLabelEndpoint(s Service) endpoint.Endpoint

func MakeDeleteLabelEndpoint

func MakeDeleteLabelEndpoint(s Service) endpoint.Endpoint

func MakeGetLabelByIdEndpoint

func MakeGetLabelByIdEndpoint(s Service) endpoint.Endpoint

func MakeGetLabelsEndpoint

func MakeGetLabelsEndpoint(s Service) endpoint.Endpoint

func MakeGetUserProfileEndpoint

func MakeGetUserProfileEndpoint(s Service) endpoint.Endpoint

func MakeHandler

func MakeHandler(labelService Service, logger log.Logger) http.Handler

MakeHandler mounts the labels endpoints

func MakeUpdateLabelEndpoint

func MakeUpdateLabelEndpoint(s Service) endpoint.Endpoint

Types

type Endpoints

type Endpoints struct {
	CreateLabelEndpoint  endpoint.Endpoint
	DeleteLabelEndpoint  endpoint.Endpoint
	GetLabelByIdEndpoint endpoint.Endpoint
	GetLabelsEndpoint    endpoint.Endpoint
	UpdateLabelEndpoint  endpoint.Endpoint
}

func MakeEndpoints

func MakeEndpoints(s Service) Endpoints

type Service

type Service interface {
	CreateLabel()
	DeleteLabel()
	GetLabelById()
	GetLabels(string) ([]*gmail.Label, error)
	UpdateLabel()
}

func New

func New(logger log.Logger, repo repos.Repository, mailx mailx.Service) Service

Jump to

Keyboard shortcuts

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