helloconsolev1

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminService_GetStats_FullMethodName = "/hello.console.v1.AdminService/GetStats"
)

Variables

View Source
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)

View Source
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.

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

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.

Jump to

Keyboard shortcuts

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