(ctx context.Context, account string)
| 190 | } |
| 191 | |
| 192 | func calendarService(ctx context.Context, account string) (*calendar.Service, error) { |
| 193 | runtime, err := runtimeWithService(ctx, "calendar") |
| 194 | if err != nil || runtime.Services.Calendar == nil { |
| 195 | return nil, serviceError(err, "calendar") |
| 196 | } |
| 197 | return runtime.Services.Calendar(ctx, account) |
| 198 | } |
| 199 | |
| 200 | func chatService(ctx context.Context, account string) (*chat.Service, error) { |
| 201 | runtime, err := runtimeWithService(ctx, "chat") |