Documentation
¶
Index ¶
- Variables
- func RegisterDashboardServer(s *grpc.Server, srv DashboardServer)
- type AppInfo
- func (*AppInfo) Descriptor() ([]byte, []int)
- func (m *AppInfo) GetDescription() string
- func (m *AppInfo) GetId() string
- func (m *AppInfo) GetStatus() AppStatus
- func (m *AppInfo) GetTitle() string
- func (*AppInfo) ProtoMessage()
- func (m *AppInfo) Reset()
- func (m *AppInfo) String() string
- func (m *AppInfo) XXX_DiscardUnknown()
- func (m *AppInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppInfo) XXX_Merge(src proto.Message)
- func (m *AppInfo) XXX_Size() int
- func (m *AppInfo) XXX_Unmarshal(b []byte) error
- type AppMetricsResponse
- func (*AppMetricsResponse) Descriptor() ([]byte, []int)
- func (m *AppMetricsResponse) GetId() string
- func (m *AppMetricsResponse) GetMetrics() []*Metric
- func (m *AppMetricsResponse) GetTitle() string
- func (*AppMetricsResponse) ProtoMessage()
- func (m *AppMetricsResponse) Reset()
- func (m *AppMetricsResponse) String() string
- func (m *AppMetricsResponse) XXX_DiscardUnknown()
- func (m *AppMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppMetricsResponse) XXX_Merge(src proto.Message)
- func (m *AppMetricsResponse) XXX_Size() int
- func (m *AppMetricsResponse) XXX_Unmarshal(b []byte) error
- type AppStatus
- type AppsInfoRequest
- func (*AppsInfoRequest) Descriptor() ([]byte, []int)
- func (m *AppsInfoRequest) GetFilterAppId() string
- func (*AppsInfoRequest) ProtoMessage()
- func (m *AppsInfoRequest) Reset()
- func (m *AppsInfoRequest) String() string
- func (m *AppsInfoRequest) XXX_DiscardUnknown()
- func (m *AppsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppsInfoRequest) XXX_Merge(src proto.Message)
- func (m *AppsInfoRequest) XXX_Size() int
- func (m *AppsInfoRequest) XXX_Unmarshal(b []byte) error
- type AppsInfoResponse
- func (*AppsInfoResponse) Descriptor() ([]byte, []int)
- func (m *AppsInfoResponse) GetApps() []*AppInfo
- func (*AppsInfoResponse) ProtoMessage()
- func (m *AppsInfoResponse) Reset()
- func (m *AppsInfoResponse) String() string
- func (m *AppsInfoResponse) XXX_DiscardUnknown()
- func (m *AppsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppsInfoResponse) XXX_Merge(src proto.Message)
- func (m *AppsInfoResponse) XXX_Size() int
- func (m *AppsInfoResponse) XXX_Unmarshal(b []byte) error
- type AppsListRequest
- func (*AppsListRequest) Descriptor() ([]byte, []int)
- func (*AppsListRequest) ProtoMessage()
- func (m *AppsListRequest) Reset()
- func (m *AppsListRequest) String() string
- func (m *AppsListRequest) XXX_DiscardUnknown()
- func (m *AppsListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppsListRequest) XXX_Merge(src proto.Message)
- func (m *AppsListRequest) XXX_Size() int
- func (m *AppsListRequest) XXX_Unmarshal(b []byte) error
- type AppsListResponse
- func (*AppsListResponse) Descriptor() ([]byte, []int)
- func (m *AppsListResponse) GetApps() []*AppInfo
- func (*AppsListResponse) ProtoMessage()
- func (m *AppsListResponse) Reset()
- func (m *AppsListResponse) String() string
- func (m *AppsListResponse) XXX_DiscardUnknown()
- func (m *AppsListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppsListResponse) XXX_Merge(src proto.Message)
- func (m *AppsListResponse) XXX_Size() int
- func (m *AppsListResponse) XXX_Unmarshal(b []byte) error
- type AppsMetricsRequest
- func (*AppsMetricsRequest) Descriptor() ([]byte, []int)
- func (m *AppsMetricsRequest) GetFilterAppId() string
- func (*AppsMetricsRequest) ProtoMessage()
- func (m *AppsMetricsRequest) Reset()
- func (m *AppsMetricsRequest) String() string
- func (m *AppsMetricsRequest) XXX_DiscardUnknown()
- func (m *AppsMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppsMetricsRequest) XXX_Merge(src proto.Message)
- func (m *AppsMetricsRequest) XXX_Size() int
- func (m *AppsMetricsRequest) XXX_Unmarshal(b []byte) error
- type DashboardClient
- type DashboardServer
- type Dashboard_AppsInfoClient
- type Dashboard_AppsInfoServer
- type Dashboard_AppsMetricsClient
- type Dashboard_AppsMetricsServer
- type DmeshClient
- func (*DmeshClient) Descriptor() ([]byte, []int)
- func (m *DmeshClient) GetBoot() *timestamp.Timestamp
- func (m *DmeshClient) GetHasMovingHead() bool
- func (m *DmeshClient) GetHasMovingTail() bool
- func (m *DmeshClient) GetHeadBlockId() string
- func (m *DmeshClient) GetHeadBlockNum() uint64
- func (m *DmeshClient) GetHost() string
- func (m *DmeshClient) GetIrrBlockId() string
- func (m *DmeshClient) GetIrrBlockNum() uint64
- func (m *DmeshClient) GetReady() bool
- func (m *DmeshClient) GetServesResolveForks() bool
- func (m *DmeshClient) GetServesReversible() bool
- func (m *DmeshClient) GetShardSize() uint64
- func (m *DmeshClient) GetTailBlockId() string
- func (m *DmeshClient) GetTailBlockNum() uint64
- func (m *DmeshClient) GetTierLevel() uint32
- func (*DmeshClient) ProtoMessage()
- func (m *DmeshClient) Reset()
- func (m *DmeshClient) String() string
- func (m *DmeshClient) XXX_DiscardUnknown()
- func (m *DmeshClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DmeshClient) XXX_Merge(src proto.Message)
- func (m *DmeshClient) XXX_Size() int
- func (m *DmeshClient) XXX_Unmarshal(b []byte) error
- type DmeshRequest
- func (*DmeshRequest) Descriptor() ([]byte, []int)
- func (*DmeshRequest) ProtoMessage()
- func (m *DmeshRequest) Reset()
- func (m *DmeshRequest) String() string
- func (m *DmeshRequest) XXX_DiscardUnknown()
- func (m *DmeshRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DmeshRequest) XXX_Merge(src proto.Message)
- func (m *DmeshRequest) XXX_Size() int
- func (m *DmeshRequest) XXX_Unmarshal(b []byte) error
- type DmeshResponse
- func (*DmeshResponse) Descriptor() ([]byte, []int)
- func (m *DmeshResponse) GetClients() []*DmeshClient
- func (*DmeshResponse) ProtoMessage()
- func (m *DmeshResponse) Reset()
- func (m *DmeshResponse) String() string
- func (m *DmeshResponse) XXX_DiscardUnknown()
- func (m *DmeshResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DmeshResponse) XXX_Merge(src proto.Message)
- func (m *DmeshResponse) XXX_Size() int
- func (m *DmeshResponse) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetTimestamp() *timestamp.Timestamp
- func (m *Metric) GetType() MetricType
- func (m *Metric) GetValue() float32
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) String() string
- func (m *Metric) XXX_DiscardUnknown()
- func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metric) XXX_Merge(src proto.Message)
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
- type MetricType
- type StartAppRequest
- func (*StartAppRequest) Descriptor() ([]byte, []int)
- func (m *StartAppRequest) GetAppId() string
- func (*StartAppRequest) ProtoMessage()
- func (m *StartAppRequest) Reset()
- func (m *StartAppRequest) String() string
- func (m *StartAppRequest) XXX_DiscardUnknown()
- func (m *StartAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StartAppRequest) XXX_Merge(src proto.Message)
- func (m *StartAppRequest) XXX_Size() int
- func (m *StartAppRequest) XXX_Unmarshal(b []byte) error
- type StartAppResponse
- func (*StartAppResponse) Descriptor() ([]byte, []int)
- func (*StartAppResponse) ProtoMessage()
- func (m *StartAppResponse) Reset()
- func (m *StartAppResponse) String() string
- func (m *StartAppResponse) XXX_DiscardUnknown()
- func (m *StartAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StartAppResponse) XXX_Merge(src proto.Message)
- func (m *StartAppResponse) XXX_Size() int
- func (m *StartAppResponse) XXX_Unmarshal(b []byte) error
- type StopAppRequest
- func (*StopAppRequest) Descriptor() ([]byte, []int)
- func (m *StopAppRequest) GetAppId() string
- func (*StopAppRequest) ProtoMessage()
- func (m *StopAppRequest) Reset()
- func (m *StopAppRequest) String() string
- func (m *StopAppRequest) XXX_DiscardUnknown()
- func (m *StopAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StopAppRequest) XXX_Merge(src proto.Message)
- func (m *StopAppRequest) XXX_Size() int
- func (m *StopAppRequest) XXX_Unmarshal(b []byte) error
- type StopAppResponse
- func (*StopAppResponse) Descriptor() ([]byte, []int)
- func (*StopAppResponse) ProtoMessage()
- func (m *StopAppResponse) Reset()
- func (m *StopAppResponse) String() string
- func (m *StopAppResponse) XXX_DiscardUnknown()
- func (m *StopAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StopAppResponse) XXX_Merge(src proto.Message)
- func (m *StopAppResponse) XXX_Size() int
- func (m *StopAppResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedDashboardServer
- func (*UnimplementedDashboardServer) AppsInfo(req *AppsInfoRequest, srv Dashboard_AppsInfoServer) error
- func (*UnimplementedDashboardServer) AppsList(ctx context.Context, req *AppsListRequest) (*AppsListResponse, error)
- func (*UnimplementedDashboardServer) AppsMetrics(req *AppsMetricsRequest, srv Dashboard_AppsMetricsServer) error
- func (*UnimplementedDashboardServer) Dmesh(ctx context.Context, req *DmeshRequest) (*DmeshResponse, error)
- func (*UnimplementedDashboardServer) StartApp(ctx context.Context, req *StartAppRequest) (*StartAppResponse, error)
- func (*UnimplementedDashboardServer) StopApp(ctx context.Context, req *StopAppRequest) (*StopAppResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AppStatus_name = map[int32]string{
0: "NOTFOUND",
1: "CREATED",
2: "RUNNING",
3: "WARNING",
4: "STOPPED",
}
View Source
var AppStatus_value = map[string]int32{
"NOTFOUND": 0,
"CREATED": 1,
"RUNNING": 2,
"WARNING": 3,
"STOPPED": 4,
}
View Source
var MetricType_name = map[int32]string{
0: "HEAD_BLOCK_TIME_DRIFT",
1: "HEAD_BLOCK_NUMBER",
}
View Source
var MetricType_value = map[string]int32{
"HEAD_BLOCK_TIME_DRIFT": 0,
"HEAD_BLOCK_NUMBER": 1,
}
Functions ¶
func RegisterDashboardServer ¶
func RegisterDashboardServer(s *grpc.Server, srv DashboardServer)
Types ¶
type AppInfo ¶
type AppInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Status AppStatus `protobuf:"varint,4,opt,name=status,proto3,enum=dashboard.AppStatus" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppInfo) Descriptor ¶
func (*AppInfo) GetDescription ¶
func (*AppInfo) ProtoMessage ¶
func (*AppInfo) ProtoMessage()
func (*AppInfo) XXX_DiscardUnknown ¶
func (m *AppInfo) XXX_DiscardUnknown()
func (*AppInfo) XXX_Marshal ¶
func (*AppInfo) XXX_Unmarshal ¶
type AppMetricsResponse ¶
type AppMetricsResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppMetricsResponse) Descriptor ¶
func (*AppMetricsResponse) Descriptor() ([]byte, []int)
func (*AppMetricsResponse) GetId ¶
func (m *AppMetricsResponse) GetId() string
func (*AppMetricsResponse) GetMetrics ¶
func (m *AppMetricsResponse) GetMetrics() []*Metric
func (*AppMetricsResponse) GetTitle ¶
func (m *AppMetricsResponse) GetTitle() string
func (*AppMetricsResponse) ProtoMessage ¶
func (*AppMetricsResponse) ProtoMessage()
func (*AppMetricsResponse) Reset ¶
func (m *AppMetricsResponse) Reset()
func (*AppMetricsResponse) String ¶
func (m *AppMetricsResponse) String() string
func (*AppMetricsResponse) XXX_DiscardUnknown ¶
func (m *AppMetricsResponse) XXX_DiscardUnknown()
func (*AppMetricsResponse) XXX_Marshal ¶
func (m *AppMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppMetricsResponse) XXX_Merge ¶
func (m *AppMetricsResponse) XXX_Merge(src proto.Message)
func (*AppMetricsResponse) XXX_Size ¶
func (m *AppMetricsResponse) XXX_Size() int
func (*AppMetricsResponse) XXX_Unmarshal ¶
func (m *AppMetricsResponse) XXX_Unmarshal(b []byte) error
type AppsInfoRequest ¶
type AppsInfoRequest struct {
FilterAppId string `protobuf:"bytes,1,opt,name=filter_app_id,json=filterAppId,proto3" json:"filter_app_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppsInfoRequest) Descriptor ¶
func (*AppsInfoRequest) Descriptor() ([]byte, []int)
func (*AppsInfoRequest) GetFilterAppId ¶
func (m *AppsInfoRequest) GetFilterAppId() string
func (*AppsInfoRequest) ProtoMessage ¶
func (*AppsInfoRequest) ProtoMessage()
func (*AppsInfoRequest) Reset ¶
func (m *AppsInfoRequest) Reset()
func (*AppsInfoRequest) String ¶
func (m *AppsInfoRequest) String() string
func (*AppsInfoRequest) XXX_DiscardUnknown ¶
func (m *AppsInfoRequest) XXX_DiscardUnknown()
func (*AppsInfoRequest) XXX_Marshal ¶
func (m *AppsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppsInfoRequest) XXX_Merge ¶
func (m *AppsInfoRequest) XXX_Merge(src proto.Message)
func (*AppsInfoRequest) XXX_Size ¶
func (m *AppsInfoRequest) XXX_Size() int
func (*AppsInfoRequest) XXX_Unmarshal ¶
func (m *AppsInfoRequest) XXX_Unmarshal(b []byte) error
type AppsInfoResponse ¶
type AppsInfoResponse struct {
Apps []*AppInfo `protobuf:"bytes,1,rep,name=Apps,proto3" json:"Apps,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppsInfoResponse) Descriptor ¶
func (*AppsInfoResponse) Descriptor() ([]byte, []int)
func (*AppsInfoResponse) GetApps ¶
func (m *AppsInfoResponse) GetApps() []*AppInfo
func (*AppsInfoResponse) ProtoMessage ¶
func (*AppsInfoResponse) ProtoMessage()
func (*AppsInfoResponse) Reset ¶
func (m *AppsInfoResponse) Reset()
func (*AppsInfoResponse) String ¶
func (m *AppsInfoResponse) String() string
func (*AppsInfoResponse) XXX_DiscardUnknown ¶
func (m *AppsInfoResponse) XXX_DiscardUnknown()
func (*AppsInfoResponse) XXX_Marshal ¶
func (m *AppsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppsInfoResponse) XXX_Merge ¶
func (m *AppsInfoResponse) XXX_Merge(src proto.Message)
func (*AppsInfoResponse) XXX_Size ¶
func (m *AppsInfoResponse) XXX_Size() int
func (*AppsInfoResponse) XXX_Unmarshal ¶
func (m *AppsInfoResponse) XXX_Unmarshal(b []byte) error
type AppsListRequest ¶
type AppsListRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppsListRequest) Descriptor ¶
func (*AppsListRequest) Descriptor() ([]byte, []int)
func (*AppsListRequest) ProtoMessage ¶
func (*AppsListRequest) ProtoMessage()
func (*AppsListRequest) Reset ¶
func (m *AppsListRequest) Reset()
func (*AppsListRequest) String ¶
func (m *AppsListRequest) String() string
func (*AppsListRequest) XXX_DiscardUnknown ¶
func (m *AppsListRequest) XXX_DiscardUnknown()
func (*AppsListRequest) XXX_Marshal ¶
func (m *AppsListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppsListRequest) XXX_Merge ¶
func (m *AppsListRequest) XXX_Merge(src proto.Message)
func (*AppsListRequest) XXX_Size ¶
func (m *AppsListRequest) XXX_Size() int
func (*AppsListRequest) XXX_Unmarshal ¶
func (m *AppsListRequest) XXX_Unmarshal(b []byte) error
type AppsListResponse ¶
type AppsListResponse struct {
Apps []*AppInfo `protobuf:"bytes,1,rep,name=Apps,proto3" json:"Apps,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppsListResponse) Descriptor ¶
func (*AppsListResponse) Descriptor() ([]byte, []int)
func (*AppsListResponse) GetApps ¶
func (m *AppsListResponse) GetApps() []*AppInfo
func (*AppsListResponse) ProtoMessage ¶
func (*AppsListResponse) ProtoMessage()
func (*AppsListResponse) Reset ¶
func (m *AppsListResponse) Reset()
func (*AppsListResponse) String ¶
func (m *AppsListResponse) String() string
func (*AppsListResponse) XXX_DiscardUnknown ¶
func (m *AppsListResponse) XXX_DiscardUnknown()
func (*AppsListResponse) XXX_Marshal ¶
func (m *AppsListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppsListResponse) XXX_Merge ¶
func (m *AppsListResponse) XXX_Merge(src proto.Message)
func (*AppsListResponse) XXX_Size ¶
func (m *AppsListResponse) XXX_Size() int
func (*AppsListResponse) XXX_Unmarshal ¶
func (m *AppsListResponse) XXX_Unmarshal(b []byte) error
type AppsMetricsRequest ¶
type AppsMetricsRequest struct {
FilterAppId string `protobuf:"bytes,1,opt,name=filter_app_id,json=filterAppId,proto3" json:"filter_app_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AppsMetricsRequest) Descriptor ¶
func (*AppsMetricsRequest) Descriptor() ([]byte, []int)
func (*AppsMetricsRequest) GetFilterAppId ¶
func (m *AppsMetricsRequest) GetFilterAppId() string
func (*AppsMetricsRequest) ProtoMessage ¶
func (*AppsMetricsRequest) ProtoMessage()
func (*AppsMetricsRequest) Reset ¶
func (m *AppsMetricsRequest) Reset()
func (*AppsMetricsRequest) String ¶
func (m *AppsMetricsRequest) String() string
func (*AppsMetricsRequest) XXX_DiscardUnknown ¶
func (m *AppsMetricsRequest) XXX_DiscardUnknown()
func (*AppsMetricsRequest) XXX_Marshal ¶
func (m *AppsMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppsMetricsRequest) XXX_Merge ¶
func (m *AppsMetricsRequest) XXX_Merge(src proto.Message)
func (*AppsMetricsRequest) XXX_Size ¶
func (m *AppsMetricsRequest) XXX_Size() int
func (*AppsMetricsRequest) XXX_Unmarshal ¶
func (m *AppsMetricsRequest) XXX_Unmarshal(b []byte) error
type DashboardClient ¶
type DashboardClient interface {
AppsList(ctx context.Context, in *AppsListRequest, opts ...grpc.CallOption) (*AppsListResponse, error)
AppsInfo(ctx context.Context, in *AppsInfoRequest, opts ...grpc.CallOption) (Dashboard_AppsInfoClient, error)
AppsMetrics(ctx context.Context, in *AppsMetricsRequest, opts ...grpc.CallOption) (Dashboard_AppsMetricsClient, error)
Dmesh(ctx context.Context, in *DmeshRequest, opts ...grpc.CallOption) (*DmeshResponse, error)
StartApp(ctx context.Context, in *StartAppRequest, opts ...grpc.CallOption) (*StartAppResponse, error)
StopApp(ctx context.Context, in *StopAppRequest, opts ...grpc.CallOption) (*StopAppResponse, error)
}
DashboardClient is the client API for Dashboard service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDashboardClient ¶
func NewDashboardClient(cc *grpc.ClientConn) DashboardClient
type DashboardServer ¶
type DashboardServer interface {
AppsList(context.Context, *AppsListRequest) (*AppsListResponse, error)
AppsInfo(*AppsInfoRequest, Dashboard_AppsInfoServer) error
AppsMetrics(*AppsMetricsRequest, Dashboard_AppsMetricsServer) error
Dmesh(context.Context, *DmeshRequest) (*DmeshResponse, error)
StartApp(context.Context, *StartAppRequest) (*StartAppResponse, error)
StopApp(context.Context, *StopAppRequest) (*StopAppResponse, error)
}
DashboardServer is the server API for Dashboard service.
type Dashboard_AppsInfoClient ¶
type Dashboard_AppsInfoClient interface {
Recv() (*AppsInfoResponse, error)
grpc.ClientStream
}
type Dashboard_AppsInfoServer ¶
type Dashboard_AppsInfoServer interface {
Send(*AppsInfoResponse) error
grpc.ServerStream
}
type Dashboard_AppsMetricsClient ¶
type Dashboard_AppsMetricsClient interface {
Recv() (*AppMetricsResponse, error)
grpc.ClientStream
}
type Dashboard_AppsMetricsServer ¶
type Dashboard_AppsMetricsServer interface {
Send(*AppMetricsResponse) error
grpc.ServerStream
}
type DmeshClient ¶
type DmeshClient struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Ready bool `protobuf:"varint,2,opt,name=ready,proto3" json:"ready,omitempty"`
Boot *timestamp.Timestamp `protobuf:"bytes,3,opt,name=boot,proto3" json:"boot,omitempty"`
ServesResolveForks bool `protobuf:"varint,4,opt,name=serves_resolveForks,json=servesResolveForks,proto3" json:"serves_resolveForks,omitempty"`
ServesReversible bool `protobuf:"varint,5,opt,name=serves_reversible,json=servesReversible,proto3" json:"serves_reversible,omitempty"`
HasMovingHead bool `protobuf:"varint,6,opt,name=has_moving_head,json=hasMovingHead,proto3" json:"has_moving_head,omitempty"`
HasMovingTail bool `protobuf:"varint,7,opt,name=has_moving_tail,json=hasMovingTail,proto3" json:"has_moving_tail,omitempty"`
ShardSize uint64 `protobuf:"varint,8,opt,name=shard_size,json=shardSize,proto3" json:"shard_size,omitempty"`
TierLevel uint32 `protobuf:"varint,9,opt,name=tier_level,json=tierLevel,proto3" json:"tier_level,omitempty"`
TailBlockNum uint64 `protobuf:"varint,10,opt,name=tail_block_num,json=tailBlockNum,proto3" json:"tail_block_num,omitempty"`
TailBlockId string `protobuf:"bytes,11,opt,name=tail_block_id,json=tailBlockId,proto3" json:"tail_block_id,omitempty"`
IrrBlockNum uint64 `protobuf:"varint,12,opt,name=irr_block_num,json=irrBlockNum,proto3" json:"irr_block_num,omitempty"`
IrrBlockId string `protobuf:"bytes,13,opt,name=irr_block_id,json=irrBlockId,proto3" json:"irr_block_id,omitempty"`
HeadBlockNum uint64 `protobuf:"varint,14,opt,name=head_block_num,json=headBlockNum,proto3" json:"head_block_num,omitempty"`
HeadBlockId string `protobuf:"bytes,15,opt,name=head_block_id,json=headBlockId,proto3" json:"head_block_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*DmeshClient) Descriptor ¶
func (*DmeshClient) Descriptor() ([]byte, []int)
func (*DmeshClient) GetBoot ¶
func (m *DmeshClient) GetBoot() *timestamp.Timestamp
func (*DmeshClient) GetHasMovingHead ¶
func (m *DmeshClient) GetHasMovingHead() bool
func (*DmeshClient) GetHasMovingTail ¶
func (m *DmeshClient) GetHasMovingTail() bool
func (*DmeshClient) GetHeadBlockId ¶
func (m *DmeshClient) GetHeadBlockId() string
func (*DmeshClient) GetHeadBlockNum ¶
func (m *DmeshClient) GetHeadBlockNum() uint64
func (*DmeshClient) GetHost ¶
func (m *DmeshClient) GetHost() string
func (*DmeshClient) GetIrrBlockId ¶
func (m *DmeshClient) GetIrrBlockId() string
func (*DmeshClient) GetIrrBlockNum ¶
func (m *DmeshClient) GetIrrBlockNum() uint64
func (*DmeshClient) GetReady ¶
func (m *DmeshClient) GetReady() bool
func (*DmeshClient) GetServesResolveForks ¶
func (m *DmeshClient) GetServesResolveForks() bool
func (*DmeshClient) GetServesReversible ¶
func (m *DmeshClient) GetServesReversible() bool
func (*DmeshClient) GetShardSize ¶
func (m *DmeshClient) GetShardSize() uint64
func (*DmeshClient) GetTailBlockId ¶
func (m *DmeshClient) GetTailBlockId() string
func (*DmeshClient) GetTailBlockNum ¶
func (m *DmeshClient) GetTailBlockNum() uint64
func (*DmeshClient) GetTierLevel ¶
func (m *DmeshClient) GetTierLevel() uint32
func (*DmeshClient) ProtoMessage ¶
func (*DmeshClient) ProtoMessage()
func (*DmeshClient) Reset ¶
func (m *DmeshClient) Reset()
func (*DmeshClient) String ¶
func (m *DmeshClient) String() string
func (*DmeshClient) XXX_DiscardUnknown ¶
func (m *DmeshClient) XXX_DiscardUnknown()
func (*DmeshClient) XXX_Marshal ¶
func (m *DmeshClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DmeshClient) XXX_Merge ¶
func (m *DmeshClient) XXX_Merge(src proto.Message)
func (*DmeshClient) XXX_Size ¶
func (m *DmeshClient) XXX_Size() int
func (*DmeshClient) XXX_Unmarshal ¶
func (m *DmeshClient) XXX_Unmarshal(b []byte) error
type DmeshRequest ¶
type DmeshRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*DmeshRequest) Descriptor ¶
func (*DmeshRequest) Descriptor() ([]byte, []int)
func (*DmeshRequest) ProtoMessage ¶
func (*DmeshRequest) ProtoMessage()
func (*DmeshRequest) Reset ¶
func (m *DmeshRequest) Reset()
func (*DmeshRequest) String ¶
func (m *DmeshRequest) String() string
func (*DmeshRequest) XXX_DiscardUnknown ¶
func (m *DmeshRequest) XXX_DiscardUnknown()
func (*DmeshRequest) XXX_Marshal ¶
func (m *DmeshRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DmeshRequest) XXX_Merge ¶
func (m *DmeshRequest) XXX_Merge(src proto.Message)
func (*DmeshRequest) XXX_Size ¶
func (m *DmeshRequest) XXX_Size() int
func (*DmeshRequest) XXX_Unmarshal ¶
func (m *DmeshRequest) XXX_Unmarshal(b []byte) error
type DmeshResponse ¶
type DmeshResponse struct {
Clients []*DmeshClient `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*DmeshResponse) Descriptor ¶
func (*DmeshResponse) Descriptor() ([]byte, []int)
func (*DmeshResponse) GetClients ¶
func (m *DmeshResponse) GetClients() []*DmeshClient
func (*DmeshResponse) ProtoMessage ¶
func (*DmeshResponse) ProtoMessage()
func (*DmeshResponse) Reset ¶
func (m *DmeshResponse) Reset()
func (*DmeshResponse) String ¶
func (m *DmeshResponse) String() string
func (*DmeshResponse) XXX_DiscardUnknown ¶
func (m *DmeshResponse) XXX_DiscardUnknown()
func (*DmeshResponse) XXX_Marshal ¶
func (m *DmeshResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DmeshResponse) XXX_Merge ¶
func (m *DmeshResponse) XXX_Merge(src proto.Message)
func (*DmeshResponse) XXX_Size ¶
func (m *DmeshResponse) XXX_Size() int
func (*DmeshResponse) XXX_Unmarshal ¶
func (m *DmeshResponse) XXX_Unmarshal(b []byte) error
type Metric ¶
type Metric struct {
Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
Type MetricType `protobuf:"varint,3,opt,name=type,proto3,enum=dashboard.MetricType" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Metric) Descriptor ¶
func (*Metric) GetTimestamp ¶
func (*Metric) GetType ¶
func (m *Metric) GetType() MetricType
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) XXX_DiscardUnknown ¶
func (m *Metric) XXX_DiscardUnknown()
func (*Metric) XXX_Marshal ¶
func (*Metric) XXX_Unmarshal ¶
type MetricType ¶
type MetricType int32
const ( MetricType_HEAD_BLOCK_TIME_DRIFT MetricType = 0 MetricType_HEAD_BLOCK_NUMBER MetricType = 1 )
func (MetricType) EnumDescriptor ¶
func (MetricType) EnumDescriptor() ([]byte, []int)
func (MetricType) String ¶
func (x MetricType) String() string
type StartAppRequest ¶
type StartAppRequest struct {
AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StartAppRequest) Descriptor ¶
func (*StartAppRequest) Descriptor() ([]byte, []int)
func (*StartAppRequest) GetAppId ¶
func (m *StartAppRequest) GetAppId() string
func (*StartAppRequest) ProtoMessage ¶
func (*StartAppRequest) ProtoMessage()
func (*StartAppRequest) Reset ¶
func (m *StartAppRequest) Reset()
func (*StartAppRequest) String ¶
func (m *StartAppRequest) String() string
func (*StartAppRequest) XXX_DiscardUnknown ¶
func (m *StartAppRequest) XXX_DiscardUnknown()
func (*StartAppRequest) XXX_Marshal ¶
func (m *StartAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StartAppRequest) XXX_Merge ¶
func (m *StartAppRequest) XXX_Merge(src proto.Message)
func (*StartAppRequest) XXX_Size ¶
func (m *StartAppRequest) XXX_Size() int
func (*StartAppRequest) XXX_Unmarshal ¶
func (m *StartAppRequest) XXX_Unmarshal(b []byte) error
type StartAppResponse ¶
type StartAppResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StartAppResponse) Descriptor ¶
func (*StartAppResponse) Descriptor() ([]byte, []int)
func (*StartAppResponse) ProtoMessage ¶
func (*StartAppResponse) ProtoMessage()
func (*StartAppResponse) Reset ¶
func (m *StartAppResponse) Reset()
func (*StartAppResponse) String ¶
func (m *StartAppResponse) String() string
func (*StartAppResponse) XXX_DiscardUnknown ¶
func (m *StartAppResponse) XXX_DiscardUnknown()
func (*StartAppResponse) XXX_Marshal ¶
func (m *StartAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StartAppResponse) XXX_Merge ¶
func (m *StartAppResponse) XXX_Merge(src proto.Message)
func (*StartAppResponse) XXX_Size ¶
func (m *StartAppResponse) XXX_Size() int
func (*StartAppResponse) XXX_Unmarshal ¶
func (m *StartAppResponse) XXX_Unmarshal(b []byte) error
type StopAppRequest ¶
type StopAppRequest struct {
AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StopAppRequest) Descriptor ¶
func (*StopAppRequest) Descriptor() ([]byte, []int)
func (*StopAppRequest) GetAppId ¶
func (m *StopAppRequest) GetAppId() string
func (*StopAppRequest) ProtoMessage ¶
func (*StopAppRequest) ProtoMessage()
func (*StopAppRequest) Reset ¶
func (m *StopAppRequest) Reset()
func (*StopAppRequest) String ¶
func (m *StopAppRequest) String() string
func (*StopAppRequest) XXX_DiscardUnknown ¶
func (m *StopAppRequest) XXX_DiscardUnknown()
func (*StopAppRequest) XXX_Marshal ¶
func (m *StopAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StopAppRequest) XXX_Merge ¶
func (m *StopAppRequest) XXX_Merge(src proto.Message)
func (*StopAppRequest) XXX_Size ¶
func (m *StopAppRequest) XXX_Size() int
func (*StopAppRequest) XXX_Unmarshal ¶
func (m *StopAppRequest) XXX_Unmarshal(b []byte) error
type StopAppResponse ¶
type StopAppResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StopAppResponse) Descriptor ¶
func (*StopAppResponse) Descriptor() ([]byte, []int)
func (*StopAppResponse) ProtoMessage ¶
func (*StopAppResponse) ProtoMessage()
func (*StopAppResponse) Reset ¶
func (m *StopAppResponse) Reset()
func (*StopAppResponse) String ¶
func (m *StopAppResponse) String() string
func (*StopAppResponse) XXX_DiscardUnknown ¶
func (m *StopAppResponse) XXX_DiscardUnknown()
func (*StopAppResponse) XXX_Marshal ¶
func (m *StopAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StopAppResponse) XXX_Merge ¶
func (m *StopAppResponse) XXX_Merge(src proto.Message)
func (*StopAppResponse) XXX_Size ¶
func (m *StopAppResponse) XXX_Size() int
func (*StopAppResponse) XXX_Unmarshal ¶
func (m *StopAppResponse) XXX_Unmarshal(b []byte) error
type UnimplementedDashboardServer ¶
type UnimplementedDashboardServer struct {
}
UnimplementedDashboardServer can be embedded to have forward compatible implementations.
func (*UnimplementedDashboardServer) AppsInfo ¶
func (*UnimplementedDashboardServer) AppsInfo(req *AppsInfoRequest, srv Dashboard_AppsInfoServer) error
func (*UnimplementedDashboardServer) AppsList ¶
func (*UnimplementedDashboardServer) AppsList(ctx context.Context, req *AppsListRequest) (*AppsListResponse, error)
func (*UnimplementedDashboardServer) AppsMetrics ¶
func (*UnimplementedDashboardServer) AppsMetrics(req *AppsMetricsRequest, srv Dashboard_AppsMetricsServer) error
func (*UnimplementedDashboardServer) Dmesh ¶
func (*UnimplementedDashboardServer) Dmesh(ctx context.Context, req *DmeshRequest) (*DmeshResponse, error)
func (*UnimplementedDashboardServer) StartApp ¶
func (*UnimplementedDashboardServer) StartApp(ctx context.Context, req *StartAppRequest) (*StartAppResponse, error)
func (*UnimplementedDashboardServer) StopApp ¶
func (*UnimplementedDashboardServer) StopApp(ctx context.Context, req *StopAppRequest) (*StopAppResponse, error)
Click to show internal directories.
Click to hide internal directories.