Documentation
¶
Overview ¶
Package admin is courier's internal API: the console module's channel list and check, served on the platform port behind the internal secret.
Index ¶
- type Admin
- func (a *Admin) CheckChannel(ctx context.Context, req *courierconsolev1.CheckChannelRequest) (*courierconsolev1.CheckChannelResponse, error)
- func (a *Admin) GenerateWebPushKeys(context.Context, *courierconsolev1.GenerateWebPushKeysRequest) (*courierconsolev1.GenerateWebPushKeysResponse, error)
- func (a *Admin) ListChannels(ctx context.Context, _ *courierconsolev1.ListChannelsRequest) (*courierconsolev1.ListChannelsResponse, error)
- func (a *Admin) TestWebPush(ctx context.Context, req *courierconsolev1.TestWebPushRequest) (*courierconsolev1.TestWebPushResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
courierconsolev1.UnimplementedAdminServiceServer
deps.Component
// contains filtered or unexported fields
}
Admin serves AdminService.
func (*Admin) CheckChannel ¶
func (a *Admin) CheckChannel( ctx context.Context, req *courierconsolev1.CheckChannelRequest, ) (*courierconsolev1.CheckChannelResponse, error)
CheckChannel implements AdminService.
func (*Admin) GenerateWebPushKeys ¶ added in v0.0.7
func (a *Admin) GenerateWebPushKeys( context.Context, *courierconsolev1.GenerateWebPushKeysRequest, ) (*courierconsolev1.GenerateWebPushKeysResponse, error)
GenerateWebPushKeys implements AdminService.
func (*Admin) ListChannels ¶
func (a *Admin) ListChannels( ctx context.Context, _ *courierconsolev1.ListChannelsRequest, ) (*courierconsolev1.ListChannelsResponse, error)
ListChannels implements AdminService.
func (*Admin) TestWebPush ¶ added in v0.0.7
func (a *Admin) TestWebPush( ctx context.Context, req *courierconsolev1.TestWebPushRequest, ) (*courierconsolev1.TestWebPushResponse, error)
TestWebPush implements AdminService.
Click to show internal directories.
Click to hide internal directories.