Documentation
¶
Overview ¶
Package base is a generated protocol buffer package.
It is generated from these files:
base/serverstatus.proto
It has these top-level messages:
HealthCheckResponse FlagzState VersionResponse
Package base is a generated protocol buffer package.
It is generated from these files:
base/serverstatus.proto
It has these top-level messages:
HealthCheckResponse FlagzState VersionResponse
Index ¶
- func RegisterServerStatusServer(s *grpc.Server, srv ServerStatusServer)
- type FlagzState
- func (*FlagzState) Descriptor() ([]byte, []int)
- func (m *FlagzState) GetCurrentValue() string
- func (m *FlagzState) GetDefaultValue() string
- func (m *FlagzState) GetHelp() string
- func (m *FlagzState) GetName() string
- func (*FlagzState) ProtoMessage()
- func (m *FlagzState) Reset()
- func (m *FlagzState) String() string
- func (this *FlagzState) Validate() error
- type HealthCheckResponse
- type ServerStatusClient
- type ServerStatusServer
- type ServerStatus_FlagzListClient
- type ServerStatus_FlagzListServer
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)
- func (m *VersionResponse) GetBranchname() string
- func (m *VersionResponse) GetDate() string
- func (m *VersionResponse) GetEpoch() string
- func (m *VersionResponse) GetGo() string
- func (m *VersionResponse) GetHash() string
- func (m *VersionResponse) GetTag() string
- func (*VersionResponse) ProtoMessage()
- func (m *VersionResponse) Reset()
- func (m *VersionResponse) String() string
- func (this *VersionResponse) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServerStatusServer ¶
func RegisterServerStatusServer(s *grpc.Server, srv ServerStatusServer)
Types ¶
type FlagzState ¶
type FlagzState struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Help string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
CurrentValue string `protobuf:"bytes,3,opt,name=current_value,json=currentValue" json:"current_value,omitempty"`
DefaultValue string `protobuf:"bytes,4,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
}
func (*FlagzState) Descriptor ¶
func (*FlagzState) Descriptor() ([]byte, []int)
func (*FlagzState) GetCurrentValue ¶
func (m *FlagzState) GetCurrentValue() string
func (*FlagzState) GetDefaultValue ¶
func (m *FlagzState) GetDefaultValue() string
func (*FlagzState) GetHelp ¶
func (m *FlagzState) GetHelp() string
func (*FlagzState) GetName ¶
func (m *FlagzState) GetName() string
func (*FlagzState) ProtoMessage ¶
func (*FlagzState) ProtoMessage()
func (*FlagzState) Reset ¶
func (m *FlagzState) Reset()
func (*FlagzState) String ¶
func (m *FlagzState) String() string
func (*FlagzState) Validate ¶
func (this *FlagzState) Validate() error
type HealthCheckResponse ¶
type HealthCheckResponse struct {
IsOk bool `protobuf:"varint,1,opt,name=is_ok,json=isOk" json:"is_ok,omitempty"`
}
func (*HealthCheckResponse) Descriptor ¶
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
func (*HealthCheckResponse) GetIsOk ¶
func (m *HealthCheckResponse) GetIsOk() bool
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) Reset ¶
func (m *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (m *HealthCheckResponse) String() string
func (*HealthCheckResponse) Validate ¶
func (this *HealthCheckResponse) Validate() error
type ServerStatusClient ¶
type ServerStatusClient interface {
// Serves as a simple Healthcheck of the service.
HealthCheck(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error)
// Lists all Flagz states for this server.
FlagzList(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (ServerStatus_FlagzListClient, error)
// Version returns the git hash and other used when building this server.
Version(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
}
func NewServerStatusClient ¶
func NewServerStatusClient(cc *grpc.ClientConn) ServerStatusClient
type ServerStatusServer ¶
type ServerStatusServer interface {
// Serves as a simple Healthcheck of the service.
HealthCheck(context.Context, *google_protobuf.Empty) (*HealthCheckResponse, error)
// Lists all Flagz states for this server.
FlagzList(*google_protobuf.Empty, ServerStatus_FlagzListServer) error
// Version returns the git hash and other used when building this server.
Version(context.Context, *google_protobuf.Empty) (*VersionResponse, error)
}
type ServerStatus_FlagzListClient ¶
type ServerStatus_FlagzListClient interface {
Recv() (*FlagzState, error)
grpc.ClientStream
}
type ServerStatus_FlagzListServer ¶
type ServerStatus_FlagzListServer interface {
Send(*FlagzState) error
grpc.ServerStream
}
type VersionResponse ¶
type VersionResponse struct {
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
Branchname string `protobuf:"bytes,2,opt,name=branchname" json:"branchname,omitempty"`
Date string `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"`
Go string `protobuf:"bytes,4,opt,name=go" json:"go,omitempty"`
Epoch string `protobuf:"bytes,5,opt,name=epoch" json:"epoch,omitempty"`
Tag string `protobuf:"bytes,6,opt,name=tag" json:"tag,omitempty"`
}
func (*VersionResponse) Descriptor ¶
func (*VersionResponse) Descriptor() ([]byte, []int)
func (*VersionResponse) GetBranchname ¶
func (m *VersionResponse) GetBranchname() string
func (*VersionResponse) GetDate ¶
func (m *VersionResponse) GetDate() string
func (*VersionResponse) GetEpoch ¶
func (m *VersionResponse) GetEpoch() string
func (*VersionResponse) GetGo ¶
func (m *VersionResponse) GetGo() string
func (*VersionResponse) GetHash ¶
func (m *VersionResponse) GetHash() string
func (*VersionResponse) GetTag ¶
func (m *VersionResponse) GetTag() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) Reset ¶
func (m *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (m *VersionResponse) String() string
func (*VersionResponse) Validate ¶
func (this *VersionResponse) Validate() error
Click to show internal directories.
Click to hide internal directories.