service

package
v0.0.0-...-4786a4a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMicroService

func NewMicroService(name, version string, options ...micro.Option) micro.Service

func NewService

func NewService(service micro.Service, datasource k8s.Interface) self.Interface

Types

type Service

type Service struct {
	k8s.Interface
	micro.Service
}

func (*Service) DataSource

func (s *Service) DataSource() k8s.Interface

func (*Service) Handle

func (s *Service) Handle(pattern string, handler http.Handler) self.Interface

func (*Service) HandleFunc

func (s *Service) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) self.Interface

func (*Service) Run

func (s *Service) Run() error

Jump to

Keyboard shortcuts

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