Documentation ¶
Overview ¶
Package service wraps the grpcapi server to implement the gRPC-Web spec
Index ¶
- Variables
- type Config
- type Service
- func (s *Service) Config() interface{}
- func (s *Service) Desc() string
- func (s *Service) ID() string
- func (s *Service) Name() string
- func (s *Service) Needs() map[string]struct{}
- func (s *Service) Plug(exposed map[string]interface{}) error
- func (s *Service) Run(ctx context.Context, running, stopping func()) error
- func (s *Service) SetConfig(config interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotGrpcServer is returned when the connected service is not a gRPC Server. ErrNotGrpcServer = errors.New("connected service is not a gRPC Server") // available. ErrUnavailable = errors.New("the service is not available") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Host is the name of the host service. Grpcapi string `toml:"grpcapi" comment:"The name of the grpcapi service."` // Address is the address to bind to. Address string `toml:"address" comment:"Address to bind to."` }
Config contains configuration options for the Clock service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the gRPC-Web service.
func (*Service) Config ¶
func (s *Service) Config() interface{}
Config returns the current service configuration or creates one with good default values.
Click to show internal directories.
Click to hide internal directories.