-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_without_ctx.go
33 lines (24 loc) · 1.08 KB
/
user_without_ctx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated from user.go using tools/withoutctx.go; DO NOT EDIT.
package redash
import "context"
func (client *ClientWithoutContext) ListUsers(input *ListUsersInput) (*UserPage, error) {
return client.withCtx.ListUsers(context.Background(), input)
}
func (client *ClientWithoutContext) GetUser(id int) (*User, error) {
return client.withCtx.GetUser(context.Background(), id)
}
func (client *ClientWithoutContext) CreateUser(input *CreateUsersInput) (*User, error) {
return client.withCtx.CreateUser(context.Background(), input)
}
func (client *ClientWithoutContext) UpdateUser(id int, input *UpdateUserInput) (*User, error) {
return client.withCtx.UpdateUser(context.Background(), id, input)
}
func (client *ClientWithoutContext) DeleteUser(id int) error {
return client.withCtx.DeleteUser(context.Background(), id)
}
func (client *ClientWithoutContext) DisableUser(id int) (*User, error) {
return client.withCtx.DisableUser(context.Background(), id)
}
func (client *ClientWithoutContext) EnableUser(id int) (*User, error) {
return client.withCtx.EnableUser(context.Background(), id)
}