service

package
v0.0.0-...-43ccd23 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EosProjects

type EosProjects interface {
	GetProjects(user *userpb.User) (project []*proto.Project)
}

func NewEosProjects

func NewEosProjects(dbCfg config.DB, userGroupsManager config.UserGroupsManager, opts ...Option) (EosProjects, error)

New returns a new instance of Service

func NewInstrument

func NewInstrument(next EosProjects, metrics *metrics.Metrics) EosProjects

NewInstrument returns a service that instruments metrics.

func NewLogging

func NewLogging(next EosProjects, logger log.Logger) EosProjects

NewLogging returns a service that logs messages.

func NewTracing

func NewTracing(next EosProjects) EosProjects

NewTracing returns a service that instruments traces.

type EosProjectsmpl

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

BasicGreeter implements the Greeter interface

func (EosProjectsmpl) GetProjects

func (p EosProjectsmpl) GetProjects(user *userpb.User) []*proto.Project

Greet implements the EosProjectsHandler interface.

type Option

type Option func(o *Options)

Option defines a single option function.

func Logger

func Logger(val log.Logger) Option

Logger provides a function to set the Logger option.

type Options

type Options struct {
	Logger log.Logger
	Config *config.Config
}

Options defines the available options for this package.

Jump to

Keyboard shortcuts

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