MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / GetByServerID

Method GetByServerID

api/pkg/services/discord_service.go:50–54  ·  view source on GitHub ↗

GetByServerID fetches the entities.Discord by the serverID

(ctx context.Context, serverID string)

Source from the content-addressed store, hash-verified

48
49// GetByServerID fetches the entities.Discord by the serverID
50func (service *DiscordService) GetByServerID(ctx context.Context, serverID string) (*entities.Discord, error) {
51 ctx, span, _ := service.tracer.StartWithLogger(ctx, service.logger)
52 defer span.End()
53 return service.repository.FindByServerID(ctx, serverID)
54}
55
56// DeleteAllForUser deletes all entities.Discord for an entities.UserID.
57func (service *DiscordService) DeleteAllForUser(ctx context.Context, userID entities.UserID) error {

Callers 1

sendSMSMethod · 0.80

Calls 2

StartWithLoggerMethod · 0.65
FindByServerIDMethod · 0.65

Tested by

no test coverage detected