Documentation
¶
Overview ¶
Package admin is smtp's internal API: what the console module reads and does, served as gRPC on the platform port behind the internal secret and relayed by backplane under the operator's session. It shows envelopes, never bodies, and audits every change it makes.
Index ¶
- type Admin
- func (a *Admin) DeleteSuppression(ctx context.Context, req *smtpconsolev1.DeleteSuppressionRequest) (*smtpconsolev1.DeleteSuppressionResponse, error)
- func (a *Admin) DiscardDelivery(ctx context.Context, req *smtpconsolev1.DiscardDeliveryRequest) (*smtpconsolev1.DiscardDeliveryResponse, error)
- func (a *Admin) GetOverview(ctx context.Context, _ *smtpconsolev1.GetOverviewRequest) (*smtpconsolev1.GetOverviewResponse, error)
- func (a *Admin) ListAccounts(_ context.Context, _ *smtpconsolev1.ListAccountsRequest) (*smtpconsolev1.ListAccountsResponse, error)
- func (a *Admin) ListDeliveries(ctx context.Context, req *smtpconsolev1.ListDeliveriesRequest) (*smtpconsolev1.ListDeliveriesResponse, error)
- func (a *Admin) ListSuppressions(ctx context.Context, req *smtpconsolev1.ListSuppressionsRequest) (*smtpconsolev1.ListSuppressionsResponse, error)
- func (a *Admin) RequeueDelivery(ctx context.Context, req *smtpconsolev1.RequeueDeliveryRequest) (*smtpconsolev1.RequeueDeliveryResponse, error)
- func (a *Admin) String() string
- func (a *Admin) TestAccount(ctx context.Context, req *smtpconsolev1.TestAccountRequest) (*smtpconsolev1.TestAccountResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
smtpconsolev1.UnimplementedAdminServiceServer
deps.Component
// contains filtered or unexported fields
}
Admin serves AdminService.
func New ¶
func New( parent deps.Scope, st deps.Dependency[*store.Store], acc *accounts.Accounts, m *mailer.Mailer, instance string, ) *Admin
New creates the admin component under parent.
func (*Admin) DeleteSuppression ¶
func (a *Admin) DeleteSuppression( ctx context.Context, req *smtpconsolev1.DeleteSuppressionRequest, ) (*smtpconsolev1.DeleteSuppressionResponse, error)
DeleteSuppression implements AdminService.
func (*Admin) DiscardDelivery ¶
func (a *Admin) DiscardDelivery( ctx context.Context, req *smtpconsolev1.DiscardDeliveryRequest, ) (*smtpconsolev1.DiscardDeliveryResponse, error)
DiscardDelivery implements AdminService.
func (*Admin) GetOverview ¶
func (a *Admin) GetOverview( ctx context.Context, _ *smtpconsolev1.GetOverviewRequest, ) (*smtpconsolev1.GetOverviewResponse, error)
GetOverview implements AdminService.
func (*Admin) ListAccounts ¶
func (a *Admin) ListAccounts( _ context.Context, _ *smtpconsolev1.ListAccountsRequest, ) (*smtpconsolev1.ListAccountsResponse, error)
ListAccounts implements AdminService.
func (*Admin) ListDeliveries ¶
func (a *Admin) ListDeliveries( ctx context.Context, req *smtpconsolev1.ListDeliveriesRequest, ) (*smtpconsolev1.ListDeliveriesResponse, error)
ListDeliveries implements AdminService.
func (*Admin) ListSuppressions ¶
func (a *Admin) ListSuppressions( ctx context.Context, req *smtpconsolev1.ListSuppressionsRequest, ) (*smtpconsolev1.ListSuppressionsResponse, error)
ListSuppressions implements AdminService.
func (*Admin) RequeueDelivery ¶
func (a *Admin) RequeueDelivery( ctx context.Context, req *smtpconsolev1.RequeueDeliveryRequest, ) (*smtpconsolev1.RequeueDeliveryResponse, error)
RequeueDelivery implements AdminService.
func (*Admin) TestAccount ¶
func (a *Admin) TestAccount( ctx context.Context, req *smtpconsolev1.TestAccountRequest, ) (*smtpconsolev1.TestAccountResponse, error)
TestAccount implements AdminService.