Documentation ¶
Index ¶
- Constants
- type GRPCHealthChecker
- type HealthChecker
- type Server
- func (s *Server) DiskCreate(ctx context.Context, req *rpc.DiskCreateRequest) (*rpc.Disk, error)
- func (s *Server) DiskDelete(ctx context.Context, req *rpc.DiskDeleteRequest) (*emptypb.Empty, error)
- func (s *Server) DiskGet(ctx context.Context, req *rpc.DiskGetRequest) (*rpc.Disk, error)
- func (s *Server) DiskReplicaInstanceDelete(ctx context.Context, req *rpc.DiskReplicaInstanceDeleteRequest) (*empty.Empty, error)
- func (s *Server) DiskReplicaInstanceList(ctx context.Context, req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
- func (s *Server) VersionGet(ctx context.Context, req *empty.Empty) (*rpc.DiskVersionResponse, error)
Constants ¶
View Source
const ( DiskTypeFilesystem = "filesystem" DiskTypeBlock = "block" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCHealthChecker ¶
type GRPCHealthChecker struct{}
func (*GRPCHealthChecker) IsRunning ¶
func (c *GRPCHealthChecker) IsRunning(address string) bool
func (*GRPCHealthChecker) WaitForRunning ¶
func (c *GRPCHealthChecker) WaitForRunning(address, name string, stopCh chan struct{}) bool
type HealthChecker ¶
type Server ¶
type Server struct { sync.RWMutex HealthChecker HealthChecker // contains filtered or unexported fields }
func (*Server) DiskCreate ¶
func (*Server) DiskDelete ¶
func (*Server) DiskReplicaInstanceDelete ¶
func (*Server) DiskReplicaInstanceList ¶
func (s *Server) DiskReplicaInstanceList(ctx context.Context, req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
func (*Server) VersionGet ¶
Click to show internal directories.
Click to hide internal directories.