Documentation ¶
Index ¶
- func RegisterRPCHandlers(gk *gripkit.Gripkit, platformSvc *PlatformService, ...)
- type PlatformService
- func (p *PlatformService) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)
- func (p *PlatformService) EnumerateMyGuilds(ctx context.Context, req *empty.Empty) (*platform.GuildEnumeration, error)
- func (p *PlatformService) GetGuild(ctx context.Context, req *shared.IDQuery) (*platform.PresentableGuild, error)
- func (p *PlatformService) UpdateGuildData(ctx context.Context, req *platform.GuildData) (*empty.Empty, error)
- func (p *PlatformService) UpdateMyRoles(ctx context.Context, req *platform.UpdateRoles) (*empty.Empty, error)
- type UnauthenticatedPlatformService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRPCHandlers ¶
func RegisterRPCHandlers(gk *gripkit.Gripkit, platformSvc *PlatformService, unauthSvc *UnauthenticatedPlatformService)
Types ¶
type PlatformService ¶
type PlatformService struct { platform.UnimplementedPlatformServer // contains filtered or unexported fields }
func NewPlatformService ¶
func NewPlatformService(db *ent.Client, discord discord.DiscordClient, auth authBackend.AuthBackendClient) *PlatformService
func (*PlatformService) AuthFuncOverride ¶
func (*PlatformService) EnumerateMyGuilds ¶
func (p *PlatformService) EnumerateMyGuilds(ctx context.Context, req *empty.Empty) (*platform.GuildEnumeration, error)
func (*PlatformService) GetGuild ¶
func (p *PlatformService) GetGuild(ctx context.Context, req *shared.IDQuery) (*platform.PresentableGuild, error)
func (*PlatformService) UpdateGuildData ¶
func (*PlatformService) UpdateMyRoles ¶
func (p *PlatformService) UpdateMyRoles(ctx context.Context, req *platform.UpdateRoles) (*empty.Empty, error)
type UnauthenticatedPlatformService ¶
type UnauthenticatedPlatformService struct { platform.UnimplementedPlatformServer // contains filtered or unexported fields }
func NewUnauthenticatedPlatformService ¶
func NewUnauthenticatedPlatformService(db *ent.Client, discord discord.DiscordClient) *UnauthenticatedPlatformService
func (*UnauthenticatedPlatformService) GetGuildSlug ¶
Click to show internal directories.
Click to hide internal directories.