resolvers

package
v0.0.0-...-a9dd80b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aggregator

func Aggregator(ctx context.Context) domain.Aggregator

func ToID

func ToID(i int64) graphql.ID

Types

type ChannelMemberInput

type ChannelMemberInput struct {
	ChannelId int32
	UserId    int32
}

type ChannelMemberResolver

type ChannelMemberResolver struct {
	// contains filtered or unexported fields
}

func (*ChannelMemberResolver) Ok

func (t *ChannelMemberResolver) Ok() bool

type ChannelResolver

type ChannelResolver struct {
	// contains filtered or unexported fields
}

func (*ChannelResolver) Id

func (t *ChannelResolver) Id() graphql.ID

func (*ChannelResolver) IsPublic

func (t *ChannelResolver) IsPublic() bool

func (*ChannelResolver) Members

func (t *ChannelResolver) Members(ctx context.Context) ([]*UserResolver, error)

func (*ChannelResolver) Messages

func (t *ChannelResolver) Messages(ctx context.Context) ([]*MessageResolver, error)

func (*ChannelResolver) Name

func (t *ChannelResolver) Name() string

func (*ChannelResolver) Owner

func (t *ChannelResolver) Owner(ctx context.Context) (*UserResolver, error)

func (*ChannelResolver) Team

type CreateChannelInput

type CreateChannelInput struct {
	TeamId   int32
	Name     string
	OwnerId  int32
	IsPublic bool
}

type CreateChannelResolver

type CreateChannelResolver struct {
	// contains filtered or unexported fields
}

func (*CreateChannelResolver) Channel

type CreateTeamInput

type CreateTeamInput struct {
	Name    string
	OwnerId int32
}

type CreateTeamResolver

type CreateTeamResolver struct {
	// contains filtered or unexported fields
}

func (*CreateTeamResolver) Team

type CreateUserInput

type CreateUserInput struct {
	Username string
	Email    string
	Password string
}

type CreateUserResolver

type CreateUserResolver struct {
	// contains filtered or unexported fields
}

func (*CreateUserResolver) User

type MessageResolver

type MessageResolver struct {
	// contains filtered or unexported fields
}

func (*MessageResolver) Channel

func (t *MessageResolver) Channel(ctx context.Context) (*ChannelResolver, error)

func (*MessageResolver) Id

func (t *MessageResolver) Id() graphql.ID

func (*MessageResolver) Text

func (t *MessageResolver) Text() string

func (*MessageResolver) Timestamp

func (t *MessageResolver) Timestamp() string

func (*MessageResolver) User

type Mutation

type Mutation struct {
}

func (*Mutation) AddChannelMember

func (t *Mutation) AddChannelMember(ctx context.Context, args struct {
	Input ChannelMemberInput
}) (*ChannelMemberResolver, error)

func (*Mutation) AddTeamMember

func (t *Mutation) AddTeamMember(ctx context.Context, args struct {
	Input TeamMemberInput
}) (*TeamMemberResolver, error)

func (*Mutation) CreateChannel

func (t *Mutation) CreateChannel(ctx context.Context, args struct {
	Input CreateChannelInput
}) (*CreateChannelResolver, error)

func (*Mutation) CreateTeam

func (t *Mutation) CreateTeam(ctx context.Context, args struct {
	Input CreateTeamInput
}) (*CreateTeamResolver, error)

func (*Mutation) CreateUser

func (t *Mutation) CreateUser(ctx context.Context, args struct {
	Input CreateUserInput
}) (*CreateUserResolver, error)

func (*Mutation) DeleteChannelMember

func (t *Mutation) DeleteChannelMember(ctx context.Context, args struct {
	Input ChannelMemberInput
}) (*ChannelMemberResolver, error)

func (*Mutation) DeleteTeamMember

func (t *Mutation) DeleteTeamMember(ctx context.Context, args struct {
	Input TeamMemberInput
}) (*TeamMemberResolver, error)

func (*Mutation) SendMessage

func (t *Mutation) SendMessage(ctx context.Context, args struct {
	Input SendMessageInput
}) (*SendMessageResolver, error)

type Resolver

type Resolver struct {
	*Mutation
}

func (*Resolver) Channel

func (t *Resolver) Channel(ctx context.Context, args struct {
	Id int32
}) (*ChannelResolver, error)

func (*Resolver) ChannelMessageList

func (t *Resolver) ChannelMessageList(ctx context.Context, args struct {
	ChannelId int32
}) ([]*MessageResolver, error)

func (*Resolver) Ping

func (t *Resolver) Ping(ctx context.Context) string

func (*Resolver) Team

func (t *Resolver) Team(ctx context.Context, args struct {
	Id int32
}) (*TeamResolver, error)

func (*Resolver) TeamChannelList

func (t *Resolver) TeamChannelList(ctx context.Context, args struct {
	TeamId int32
}) ([]*ChannelResolver, error)

func (*Resolver) User

func (t *Resolver) User(ctx context.Context, args struct {
	Id int32
}) (*UserResolver, error)

func (*Resolver) UserList

func (t *Resolver) UserList(ctx context.Context) ([]*UserResolver, error)

func (*Resolver) UserTeamList

func (t *Resolver) UserTeamList(ctx context.Context, args struct {
	UserId int32
}) ([]*TeamResolver, error)

type SendMessageInput

type SendMessageInput struct {
	UserId    int32
	ChannelId int32
	Text      string
}

type SendMessageResolver

type SendMessageResolver struct {
	// contains filtered or unexported fields
}

func (*SendMessageResolver) Ok

func (t *SendMessageResolver) Ok() bool

type TeamMemberInput

type TeamMemberInput struct {
	TeamId int32
	UserId int32
}

type TeamMemberResolver

type TeamMemberResolver struct {
	// contains filtered or unexported fields
}

func (*TeamMemberResolver) Ok

func (t *TeamMemberResolver) Ok() bool

type TeamResolver

type TeamResolver struct {
	// contains filtered or unexported fields
}

func (*TeamResolver) Channels

func (t *TeamResolver) Channels(ctx context.Context) ([]*ChannelResolver, error)

func (*TeamResolver) Id

func (t *TeamResolver) Id() graphql.ID

func (*TeamResolver) Members

func (t *TeamResolver) Members(ctx context.Context) ([]*UserResolver, error)

func (*TeamResolver) Name

func (t *TeamResolver) Name() string

func (*TeamResolver) Owner

func (t *TeamResolver) Owner(ctx context.Context) (*UserResolver, error)

type UserResolver

type UserResolver struct {
	// contains filtered or unexported fields
}

func (*UserResolver) Email

func (t *UserResolver) Email() string

func (*UserResolver) Id

func (t *UserResolver) Id() graphql.ID

func (*UserResolver) Password

func (t *UserResolver) Password() string

func (*UserResolver) Teams

func (t *UserResolver) Teams(ctx context.Context) ([]*TeamResolver, error)

func (*UserResolver) Username

func (t *UserResolver) Username() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL