status

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStatusServer

func RegisterStatusServer(s *grpc.Server, srv StatusServer)

Types

type Ip2Location

type Ip2Location struct {
	Ipv4                 string   `protobuf:"bytes,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	CountryShort         string   `protobuf:"bytes,2,opt,name=country_short,json=countryShort,proto3" json:"country_short,omitempty"`
	CountryLong          string   `protobuf:"bytes,3,opt,name=country_long,json=countryLong,proto3" json:"country_long,omitempty"`
	Region               string   `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	City                 string   `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Latitude             float32  `protobuf:"fixed32,6,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude            float32  `protobuf:"fixed32,7,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Zipcode              string   `protobuf:"bytes,8,opt,name=zipcode,proto3" json:"zipcode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ip2Location) Descriptor

func (*Ip2Location) Descriptor() ([]byte, []int)

func (*Ip2Location) GetCity

func (m *Ip2Location) GetCity() string

func (*Ip2Location) GetCountryLong

func (m *Ip2Location) GetCountryLong() string

func (*Ip2Location) GetCountryShort

func (m *Ip2Location) GetCountryShort() string

func (*Ip2Location) GetIpv4

func (m *Ip2Location) GetIpv4() string

func (*Ip2Location) GetLatitude

func (m *Ip2Location) GetLatitude() float32

func (*Ip2Location) GetLongitude

func (m *Ip2Location) GetLongitude() float32

func (*Ip2Location) GetRegion

func (m *Ip2Location) GetRegion() string

func (*Ip2Location) GetZipcode

func (m *Ip2Location) GetZipcode() string

func (*Ip2Location) ProtoMessage

func (*Ip2Location) ProtoMessage()

func (*Ip2Location) Reset

func (m *Ip2Location) Reset()

func (*Ip2Location) String

func (m *Ip2Location) String() string

func (*Ip2Location) XXX_DiscardUnknown

func (m *Ip2Location) XXX_DiscardUnknown()

func (*Ip2Location) XXX_Marshal

func (m *Ip2Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ip2Location) XXX_Merge

func (m *Ip2Location) XXX_Merge(src proto.Message)

func (*Ip2Location) XXX_Size

func (m *Ip2Location) XXX_Size() int

func (*Ip2Location) XXX_Unmarshal

func (m *Ip2Location) XXX_Unmarshal(b []byte) error

type NodeError

type NodeError struct {
	HVal                 string     `protobuf:"bytes,1,opt,name=h_val,json=hVal,proto3" json:"h_val,omitempty"`
	PeerId               string     `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	ErrorStatus          string     `protobuf:"bytes,3,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"`
	TimeCreated          *time.Time `protobuf:"bytes,4,opt,name=time_created,json=timeCreated,proto3,stdtime" json:"time_created,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*NodeError) Descriptor

func (*NodeError) Descriptor() ([]byte, []int)

func (*NodeError) GetErrorStatus

func (m *NodeError) GetErrorStatus() string

func (*NodeError) GetHVal

func (m *NodeError) GetHVal() string

func (*NodeError) GetPeerId

func (m *NodeError) GetPeerId() string

func (*NodeError) GetTimeCreated

func (m *NodeError) GetTimeCreated() *time.Time

func (*NodeError) ProtoMessage

func (*NodeError) ProtoMessage()

func (*NodeError) Reset

func (m *NodeError) Reset()

func (*NodeError) String

func (m *NodeError) String() string

func (*NodeError) XXX_DiscardUnknown

func (m *NodeError) XXX_DiscardUnknown()

func (*NodeError) XXX_Marshal

func (m *NodeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeError) XXX_Merge

func (m *NodeError) XXX_Merge(src proto.Message)

func (*NodeError) XXX_Size

func (m *NodeError) XXX_Size() int

func (*NodeError) XXX_Unmarshal

func (m *NodeError) XXX_Unmarshal(b []byte) error

type NodeHealth

type NodeHealth struct {
	NodeId               string     `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	BtfsVersion          string     `protobuf:"bytes,2,opt,name=btfs_version,json=btfsVersion,proto3" json:"btfs_version,omitempty"`
	FailurePoint         string     `protobuf:"bytes,3,opt,name=failure_point,json=failurePoint,proto3" json:"failure_point,omitempty"`
	TimeCreated          *time.Time `protobuf:"bytes,4,opt,name=time_created,json=timeCreated,proto3,stdtime" json:"time_created,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*NodeHealth) Descriptor

func (*NodeHealth) Descriptor() ([]byte, []int)

func (*NodeHealth) GetBtfsVersion

func (m *NodeHealth) GetBtfsVersion() string

func (*NodeHealth) GetFailurePoint

func (m *NodeHealth) GetFailurePoint() string

func (*NodeHealth) GetNodeId

func (m *NodeHealth) GetNodeId() string

func (*NodeHealth) GetTimeCreated

func (m *NodeHealth) GetTimeCreated() *time.Time

func (*NodeHealth) ProtoMessage

func (*NodeHealth) ProtoMessage()

func (*NodeHealth) Reset

func (m *NodeHealth) Reset()

func (*NodeHealth) String

func (m *NodeHealth) String() string

func (*NodeHealth) XXX_DiscardUnknown

func (m *NodeHealth) XXX_DiscardUnknown()

func (*NodeHealth) XXX_Marshal

func (m *NodeHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeHealth) XXX_Merge

func (m *NodeHealth) XXX_Merge(src proto.Message)

func (*NodeHealth) XXX_Size

func (m *NodeHealth) XXX_Size() int

func (*NodeHealth) XXX_Unmarshal

func (m *NodeHealth) XXX_Unmarshal(b []byte) error

type SignedMetrics

type SignedMetrics struct {
	PublicKey            []byte   `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignedMetrics) Descriptor

func (*SignedMetrics) Descriptor() ([]byte, []int)

func (*SignedMetrics) GetPayload

func (m *SignedMetrics) GetPayload() []byte

func (*SignedMetrics) GetPublicKey

func (m *SignedMetrics) GetPublicKey() []byte

func (*SignedMetrics) GetSignature

func (m *SignedMetrics) GetSignature() []byte

func (*SignedMetrics) ProtoMessage

func (*SignedMetrics) ProtoMessage()

func (*SignedMetrics) Reset

func (m *SignedMetrics) Reset()

func (*SignedMetrics) String

func (m *SignedMetrics) String() string

func (*SignedMetrics) XXX_DiscardUnknown

func (m *SignedMetrics) XXX_DiscardUnknown()

func (*SignedMetrics) XXX_Marshal

func (m *SignedMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedMetrics) XXX_Merge

func (m *SignedMetrics) XXX_Merge(src proto.Message)

func (*SignedMetrics) XXX_Size

func (m *SignedMetrics) XXX_Size() int

func (*SignedMetrics) XXX_Unmarshal

func (m *SignedMetrics) XXX_Unmarshal(b []byte) error

type StatusClient

type StatusClient interface {
	UpdateMetrics(ctx context.Context, in *SignedMetrics, opts ...grpc.CallOption) (*types.Empty, error)
	CollectHealth(ctx context.Context, in *NodeHealth, opts ...grpc.CallOption) (*types.Empty, error)
	CollectError(ctx context.Context, in *NodeError, opts ...grpc.CallOption) (*types.Empty, error)
	CheckRuntime(ctx context.Context, in *shared.RuntimeInfoRequest, opts ...grpc.CallOption) (*shared.RuntimeInfoReport, error)
}

StatusClient is the client API for Status service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStatusClient

func NewStatusClient(cc *grpc.ClientConn) StatusClient

type StatusServer

type StatusServer interface {
	UpdateMetrics(context.Context, *SignedMetrics) (*types.Empty, error)
	CollectHealth(context.Context, *NodeHealth) (*types.Empty, error)
	CollectError(context.Context, *NodeError) (*types.Empty, error)
	CheckRuntime(context.Context, *shared.RuntimeInfoRequest) (*shared.RuntimeInfoReport, error)
}

StatusServer is the server API for Status service.

type UnimplementedStatusServer

type UnimplementedStatusServer struct {
}

UnimplementedStatusServer can be embedded to have forward compatible implementations.

func (*UnimplementedStatusServer) CheckRuntime

func (*UnimplementedStatusServer) CollectError

func (*UnimplementedStatusServer) CollectError(ctx context.Context, req *NodeError) (*types.Empty, error)

func (*UnimplementedStatusServer) CollectHealth

func (*UnimplementedStatusServer) CollectHealth(ctx context.Context, req *NodeHealth) (*types.Empty, error)

func (*UnimplementedStatusServer) UpdateMetrics

func (*UnimplementedStatusServer) UpdateMetrics(ctx context.Context, req *SignedMetrics) (*types.Empty, error)

Jump to

Keyboard shortcuts

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