Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
- type AdminServiceClient
- type AdminServiceServer
- type GetStatsRequest
- type GetStatsResponse
- func (*GetStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatsResponse) GetAudited() uint64
- func (x *GetStatsResponse) GetCachePresent() bool
- func (x *GetStatsResponse) GetCurrentGreeting() string
- func (x *GetStatsResponse) GetGreetings() uint64
- func (*GetStatsResponse) ProtoMessage()
- func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatsResponse) Reset()
- func (x *GetStatsResponse) String() string
- type UnimplementedAdminServiceServer
- type UnsafeAdminServiceServer
Constants ¶
const (
AdminService_GetStats_FullMethodName = "/hello.console.v1.AdminService/GetStats"
)
Variables ¶
var AdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hello.console.v1.AdminService", HandlerType: (*AdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStats", Handler: _AdminService_GetStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/hello/console/v1/admin.proto", }
AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_hello_console_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminServiceServer ¶
func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
Types ¶
type AdminServiceClient ¶
type AdminServiceClient interface {
GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
}
AdminServiceClient is the client API for AdminService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Internal API of hello: for its console plugin only, via the relay.
func NewAdminServiceClient ¶
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient
type AdminServiceServer ¶
type AdminServiceServer interface {
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
// contains filtered or unexported methods
}
AdminServiceServer is the server API for AdminService service. All implementations must embed UnimplementedAdminServiceServer for forward compatibility.
Internal API of hello: for its console plugin only, via the relay.
type GetStatsRequest ¶
type GetStatsRequest struct {
// contains filtered or unexported fields
}
func (*GetStatsRequest) Descriptor
deprecated
func (*GetStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
func (*GetStatsRequest) ProtoMessage ¶
func (*GetStatsRequest) ProtoMessage()
func (*GetStatsRequest) ProtoReflect ¶
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
func (*GetStatsRequest) Reset ¶
func (x *GetStatsRequest) Reset()
func (*GetStatsRequest) String ¶
func (x *GetStatsRequest) String() string
type GetStatsResponse ¶
type GetStatsResponse struct {
Greetings uint64 `protobuf:"varint,1,opt,name=greetings,proto3" json:"greetings,omitempty"`
CurrentGreeting string `protobuf:"bytes,2,opt,name=current_greeting,json=currentGreeting,proto3" json:"current_greeting,omitempty"`
// Greetings the audit reactor saw come off the event stream.
Audited uint64 `protobuf:"varint,3,opt,name=audited,proto3" json:"audited,omitempty"`
// Whether the optional cache is there right now.
CachePresent bool `protobuf:"varint,4,opt,name=cache_present,json=cachePresent,proto3" json:"cache_present,omitempty"`
// contains filtered or unexported fields
}
func (*GetStatsResponse) Descriptor
deprecated
func (*GetStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
func (*GetStatsResponse) GetAudited ¶
func (x *GetStatsResponse) GetAudited() uint64
func (*GetStatsResponse) GetCachePresent ¶
func (x *GetStatsResponse) GetCachePresent() bool
func (*GetStatsResponse) GetCurrentGreeting ¶
func (x *GetStatsResponse) GetCurrentGreeting() string
func (*GetStatsResponse) GetGreetings ¶
func (x *GetStatsResponse) GetGreetings() uint64
func (*GetStatsResponse) ProtoMessage ¶
func (*GetStatsResponse) ProtoMessage()
func (*GetStatsResponse) ProtoReflect ¶
func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
func (*GetStatsResponse) Reset ¶
func (x *GetStatsResponse) Reset()
func (*GetStatsResponse) String ¶
func (x *GetStatsResponse) String() string
type UnimplementedAdminServiceServer ¶
type UnimplementedAdminServiceServer struct{}
UnimplementedAdminServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAdminServiceServer) GetStats ¶
func (UnimplementedAdminServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
type UnsafeAdminServiceServer ¶
type UnsafeAdminServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServiceServer will result in compilation errors.