Documentation ¶
Index ¶
- func BSkyTokenValidator(pdsHost string) func(ctx context.Context, token string) (did string, err error)
- func New(ctx context.Context, log *slog.Logger, hostname string, listenAddr string, ...) (*http.Server, error)
- type AuthEngine
- type ModerationServiceHandler
- func (m *ModerationServiceHandler) AssignRoles(ctx context.Context, req *connect.Request[v1.AssignRolesRequest]) (*connect.Response[v1.AssignRolesResponse], error)
- func (m *ModerationServiceHandler) BanActor(ctx context.Context, req *connect.Request[v1.BanActorRequest]) (*connect.Response[v1.BanActorResponse], error)
- func (m *ModerationServiceHandler) CreateActor(ctx context.Context, req *connect.Request[v1.CreateActorRequest]) (*connect.Response[v1.CreateActorResponse], error)
- func (m *ModerationServiceHandler) CreateCommentAuditEvent(ctx context.Context, req *connect.Request[v1.CreateCommentAuditEventRequest]) (*connect.Response[v1.CreateCommentAuditEventResponse], error)
- func (m *ModerationServiceHandler) ForceApproveActor(ctx context.Context, req *connect.Request[v1.ForceApproveActorRequest]) (*connect.Response[v1.ForceApproveActorResponse], error)
- func (m *ModerationServiceHandler) GetActor(ctx context.Context, req *connect.Request[v1.GetActorRequest]) (*connect.Response[v1.GetActorResponse], error)
- func (m *ModerationServiceHandler) HoldBackPendingActor(ctx context.Context, req *connect.Request[v1.HoldBackPendingActorRequest]) (*connect.Response[v1.HoldBackPendingActorResponse], error)
- func (m *ModerationServiceHandler) ListActors(ctx context.Context, req *connect.Request[v1.ListActorsRequest]) (*connect.Response[v1.ListActorsResponse], error)
- func (m *ModerationServiceHandler) ListAuditEvents(ctx context.Context, req *connect.Request[v1.ListAuditEventsRequest]) (*connect.Response[v1.ListAuditEventsResponse], error)
- func (m *ModerationServiceHandler) ListRoles(ctx context.Context, req *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error)
- func (m *ModerationServiceHandler) Ping(ctx context.Context, req *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- func (m *ModerationServiceHandler) ProcessApprovalQueue(ctx context.Context, req *connect.Request[v1.ProcessApprovalQueueRequest]) (*connect.Response[v1.ProcessApprovalQueueResponse], error)
- func (m *ModerationServiceHandler) UnapproveActor(ctx context.Context, req *connect.Request[v1.UnapproveActorRequest]) (*connect.Response[v1.UnapproveActorResponse], error)
- type PublicServiceHandler
- type ServerGetSession_Output
- type UserServiceHandler
- func (u *UserServiceHandler) GetMe(ctx context.Context, req *connect.Request[v1.GetMeRequest]) (*connect.Response[v1.GetMeResponse], error)
- func (u *UserServiceHandler) JoinApprovalQueue(_ context.Context, _ *connect.Request[v1.JoinApprovalQueueRequest]) (*connect.Response[v1.JoinApprovalQueueResponse], error)
- type WebDID
- type WebDIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BSkyTokenValidator ¶ added in v0.0.15
Types ¶
type AuthEngine ¶ added in v0.0.13
type AuthEngine struct { // ActorGetter provides a way for the AuthEngine to fetch the Actor data // associated with a given DID. ActorGetter actorGetter // TokenValidator validates a given token and returns the DID associated // with that token. TokenValidator func(ctx context.Context, token string) (did string, err error) Log *slog.Logger }
AuthEngine helps authenticate requests made by users and apply authorization rules based on the identity found during authentication.
type ModerationServiceHandler ¶ added in v0.0.2
type ModerationServiceHandler struct {
// contains filtered or unexported fields
}
func (*ModerationServiceHandler) AssignRoles ¶ added in v0.0.68
func (m *ModerationServiceHandler) AssignRoles(ctx context.Context, req *connect.Request[v1.AssignRolesRequest]) (*connect.Response[v1.AssignRolesResponse], error)
func (*ModerationServiceHandler) BanActor ¶ added in v0.0.13
func (m *ModerationServiceHandler) BanActor(ctx context.Context, req *connect.Request[v1.BanActorRequest]) (*connect.Response[v1.BanActorResponse], error)
func (*ModerationServiceHandler) CreateActor ¶ added in v0.0.13
func (m *ModerationServiceHandler) CreateActor(ctx context.Context, req *connect.Request[v1.CreateActorRequest]) (*connect.Response[v1.CreateActorResponse], error)
func (*ModerationServiceHandler) CreateCommentAuditEvent ¶ added in v0.0.11
func (m *ModerationServiceHandler) CreateCommentAuditEvent(ctx context.Context, req *connect.Request[v1.CreateCommentAuditEventRequest]) (*connect.Response[v1.CreateCommentAuditEventResponse], error)
func (*ModerationServiceHandler) ForceApproveActor ¶ added in v0.0.14
func (m *ModerationServiceHandler) ForceApproveActor(ctx context.Context, req *connect.Request[v1.ForceApproveActorRequest]) (*connect.Response[v1.ForceApproveActorResponse], error)
func (*ModerationServiceHandler) GetActor ¶ added in v0.0.4
func (m *ModerationServiceHandler) GetActor(ctx context.Context, req *connect.Request[v1.GetActorRequest]) (*connect.Response[v1.GetActorResponse], error)
func (*ModerationServiceHandler) HoldBackPendingActor ¶ added in v0.0.38
func (m *ModerationServiceHandler) HoldBackPendingActor(ctx context.Context, req *connect.Request[v1.HoldBackPendingActorRequest]) (*connect.Response[v1.HoldBackPendingActorResponse], error)
func (*ModerationServiceHandler) ListActors ¶ added in v0.0.4
func (m *ModerationServiceHandler) ListActors(ctx context.Context, req *connect.Request[v1.ListActorsRequest]) (*connect.Response[v1.ListActorsResponse], error)
func (*ModerationServiceHandler) ListAuditEvents ¶ added in v0.0.11
func (m *ModerationServiceHandler) ListAuditEvents(ctx context.Context, req *connect.Request[v1.ListAuditEventsRequest]) (*connect.Response[v1.ListAuditEventsResponse], error)
func (*ModerationServiceHandler) ListRoles ¶ added in v0.0.45
func (m *ModerationServiceHandler) ListRoles(ctx context.Context, req *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error)
func (*ModerationServiceHandler) Ping ¶ added in v0.0.2
func (m *ModerationServiceHandler) Ping(ctx context.Context, req *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
func (*ModerationServiceHandler) ProcessApprovalQueue ¶ added in v0.0.2
func (m *ModerationServiceHandler) ProcessApprovalQueue(ctx context.Context, req *connect.Request[v1.ProcessApprovalQueueRequest]) (*connect.Response[v1.ProcessApprovalQueueResponse], error)
func (*ModerationServiceHandler) UnapproveActor ¶ added in v0.0.13
func (m *ModerationServiceHandler) UnapproveActor(ctx context.Context, req *connect.Request[v1.UnapproveActorRequest]) (*connect.Response[v1.UnapproveActorResponse], error)
type PublicServiceHandler ¶ added in v0.0.23
type PublicServiceHandler struct {
// contains filtered or unexported fields
}
func (*PublicServiceHandler) ListFeeds ¶ added in v0.0.23
func (p *PublicServiceHandler) ListFeeds(_ context.Context, _ *connect.Request[v1.ListFeedsRequest]) (*connect.Response[v1.ListFeedsResponse], error)
type ServerGetSession_Output ¶ added in v0.0.53
type UserServiceHandler ¶ added in v0.0.29
type UserServiceHandler struct {
// contains filtered or unexported fields
}
func (*UserServiceHandler) GetMe ¶ added in v0.0.29
func (u *UserServiceHandler) GetMe(ctx context.Context, req *connect.Request[v1.GetMeRequest]) (*connect.Response[v1.GetMeResponse], error)
func (*UserServiceHandler) JoinApprovalQueue ¶ added in v0.0.29
func (u *UserServiceHandler) JoinApprovalQueue(_ context.Context, _ *connect.Request[v1.JoinApprovalQueueRequest]) (*connect.Response[v1.JoinApprovalQueueResponse], error)
type WebDID ¶ added in v0.0.29
type WebDID struct { Context []string `json:"@context"` ID string `json:"id"` Service []WebDIDService `json:"service"` }
type WebDIDService ¶ added in v0.0.29
Click to show internal directories.
Click to hide internal directories.