Documentation
¶
Overview ¶
Package admin is hello's internal API, for its console plugin only: gRPC on the platform port behind the internal secret.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
helloconsolev1.UnimplementedAdminServiceServer
deps.Component
// contains filtered or unexported fields
}
Admin serves AdminService.
func New ¶
func New( parent deps.Scope, g *greeter.Greeter, a *audit.Audit, db deps.Dependency[*store.DB], cache deps.Optional[*store.DB], ) *Admin
New creates the admin component.
func (*Admin) GetStats ¶
func (a *Admin) GetStats( ctx context.Context, _ *helloconsolev1.GetStatsRequest, ) (*helloconsolev1.GetStatsResponse, error)
GetStats implements AdminService.
Click to show internal directories.
Click to hide internal directories.