rpc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer(config *GrpcConfig) (*grpc.Server, error)

Types

type ActionDefinitionService

type ActionDefinitionService interface {
	SaveActionDefinition(action model.ActionDefinition) error
}

type ActionService

type ActionService interface {
	Poll(action string, batchSize int) (*api.Actions, error)
	Push(*api.ActionResult) error
}

type ClusterRefresher

type ClusterRefresher interface {
	RefreshCluster()
}

type GetServerer

type GetServerer interface {
	GetServers() ([]*api.Server, error)
}

type GrpcConfig

type GrpcConfig struct {
	ActionService           ActionService
	ActionDefinitionService ActionDefinitionService
	GetServerer             GetServerer
}

Jump to

Keyboard shortcuts

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