generated

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Block struct {
		Hash      func(childComplexity int) int
		Height    func(childComplexity int) int
		Raw       func(childComplexity int) int
		Size      func(childComplexity int) int
		Timestamp func(childComplexity int) int
		TxCount   func(childComplexity int) int
		Txs       func(childComplexity int, start *uint32) int
	}

	Follow struct {
		Address       func(childComplexity int) int
		FollowAddress func(childComplexity int) int
		FollowLock    func(childComplexity int) int
		Lock          func(childComplexity int) int
		Tx            func(childComplexity int) int
		TxHash        func(childComplexity int) int
		Unfollow      func(childComplexity int) int
	}

	Like struct {
		Address    func(childComplexity int) int
		Lock       func(childComplexity int) int
		Post       func(childComplexity int) int
		PostTxHash func(childComplexity int) int
		Tip        func(childComplexity int) int
		Tx         func(childComplexity int) int
		TxHash     func(childComplexity int) int
	}

	Lock struct {
		Address func(childComplexity int) int
		Balance func(childComplexity int) int
		Profile func(childComplexity int) int
		Txs     func(childComplexity int, start *model.Date, tx *string) int
	}

	Mutation struct {
		Broadcast func(childComplexity int, raw string) int
	}

	Post struct {
		Address func(childComplexity int) int
		Likes   func(childComplexity int) int
		Lock    func(childComplexity int) int
		Parent  func(childComplexity int) int
		Replies func(childComplexity int) int
		Room    func(childComplexity int) int
		Text    func(childComplexity int) int
		Tx      func(childComplexity int) int
		TxHash  func(childComplexity int) int
	}

	Profile struct {
		Address   func(childComplexity int) int
		Followers func(childComplexity int, start *model.Date) int
		Following func(childComplexity int, start *model.Date) int
		Lock      func(childComplexity int) int
		Name      func(childComplexity int) int
		Pic       func(childComplexity int) int
		Posts     func(childComplexity int, start *model.Date, newest *bool) int
		Profile   func(childComplexity int) int
		Rooms     func(childComplexity int, start *model.Date) int
	}

	Query struct {
		Address     func(childComplexity int, address model.Address) int
		Addresses   func(childComplexity int, addresses []model.Address) int
		Block       func(childComplexity int, hash model.Hash) int
		BlockNewest func(childComplexity int) int
		Blocks      func(childComplexity int, newest *bool, start *uint32) int
		Posts       func(childComplexity int, txHashes []model.Hash) int
		PostsNewest func(childComplexity int, start *model.Date, tx *model.Hash, limit *uint32) int
		Profiles    func(childComplexity int, addresses []model.Address) int
		Room        func(childComplexity int, name string) int
		Tx          func(childComplexity int, hash model.Hash) int
		Txs         func(childComplexity int, hashes []model.Hash) int
	}

	Room struct {
		Followers func(childComplexity int, start *int) int
		Name      func(childComplexity int) int
		Posts     func(childComplexity int, start *int) int
	}

	RoomFollow struct {
		Address  func(childComplexity int) int
		Lock     func(childComplexity int) int
		Name     func(childComplexity int) int
		Room     func(childComplexity int) int
		Tx       func(childComplexity int) int
		TxHash   func(childComplexity int) int
		Unfollow func(childComplexity int) int
	}

	SetName struct {
		Address func(childComplexity int) int
		Lock    func(childComplexity int) int
		Name    func(childComplexity int) int
		Tx      func(childComplexity int) int
		TxHash  func(childComplexity int) int
	}

	SetPic struct {
		Address func(childComplexity int) int
		Lock    func(childComplexity int) int
		Pic     func(childComplexity int) int
		Tx      func(childComplexity int) int
		TxHash  func(childComplexity int) int
	}

	SetProfile struct {
		Address func(childComplexity int) int
		Lock    func(childComplexity int) int
		Text    func(childComplexity int) int
		Tx      func(childComplexity int) int
		TxHash  func(childComplexity int) int
	}

	SlpBaton struct {
		Genesis   func(childComplexity int) int
		Hash      func(childComplexity int) int
		Index     func(childComplexity int) int
		Output    func(childComplexity int) int
		TokenHash func(childComplexity int) int
	}

	SlpGenesis struct {
		Baton      func(childComplexity int) int
		BatonIndex func(childComplexity int) int
		Decimals   func(childComplexity int) int
		DocHash    func(childComplexity int) int
		DocURL     func(childComplexity int) int
		Hash       func(childComplexity int) int
		Name       func(childComplexity int) int
		Output     func(childComplexity int) int
		Ticker     func(childComplexity int) int
		TokenType  func(childComplexity int) int
		Tx         func(childComplexity int) int
	}

	SlpOutput struct {
		Amount    func(childComplexity int) int
		Genesis   func(childComplexity int) int
		Hash      func(childComplexity int) int
		Index     func(childComplexity int) int
		Output    func(childComplexity int) int
		TokenHash func(childComplexity int) int
	}

	Subscription struct {
		Address     func(childComplexity int, address model.Address) int
		Addresses   func(childComplexity int, addresses []model.Address) int
		Blocks      func(childComplexity int) int
		Posts       func(childComplexity int, hashes []model.Hash) int
		Profiles    func(childComplexity int, addresses []model.Address) int
		RoomFollows func(childComplexity int, addresses []model.Address) int
		Rooms       func(childComplexity int, names []string) int
	}

	Tx struct {
		Blocks   func(childComplexity int) int
		Hash     func(childComplexity int) int
		Inputs   func(childComplexity int) int
		LockTime func(childComplexity int) int
		Outputs  func(childComplexity int) int
		Raw      func(childComplexity int) int
		Seen     func(childComplexity int) int
		Version  func(childComplexity int) int
	}

	TxBlock struct {
		Block     func(childComplexity int) int
		BlockHash func(childComplexity int) int
		Index     func(childComplexity int) int
		Tx        func(childComplexity int) int
		TxHash    func(childComplexity int) int
	}

	TxInput struct {
		Hash      func(childComplexity int) int
		Index     func(childComplexity int) int
		Output    func(childComplexity int) int
		PrevHash  func(childComplexity int) int
		PrevIndex func(childComplexity int) int
		Script    func(childComplexity int) int
		Sequence  func(childComplexity int) int
		Tx        func(childComplexity int) int
	}

	TxOutput struct {
		Amount   func(childComplexity int) int
		Hash     func(childComplexity int) int
		Index    func(childComplexity int) int
		Lock     func(childComplexity int) int
		Script   func(childComplexity int) int
		Slp      func(childComplexity int) int
		SlpBaton func(childComplexity int) int
		Spends   func(childComplexity int) int
		Tx       func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type LikeResolver

type LikeResolver interface {
	Tx(ctx context.Context, obj *model.Like) (*model.Tx, error)

	Lock(ctx context.Context, obj *model.Like) (*model.Lock, error)

	Post(ctx context.Context, obj *model.Like) (*model.Post, error)
}

type MutationResolver

type MutationResolver interface {
	Broadcast(ctx context.Context, raw string) (bool, error)
}

type PostResolver

type PostResolver interface {
	Tx(ctx context.Context, obj *model.Post) (*model.Tx, error)

	Lock(ctx context.Context, obj *model.Post) (*model.Lock, error)

	Likes(ctx context.Context, obj *model.Post) ([]*model.Like, error)
	Parent(ctx context.Context, obj *model.Post) (*model.Post, error)
	Replies(ctx context.Context, obj *model.Post) ([]*model.Post, error)
	Room(ctx context.Context, obj *model.Post) (*model.Room, error)
}

type ProfileResolver

type ProfileResolver interface {
	Lock(ctx context.Context, obj *model.Profile) (*model.Lock, error)

	Following(ctx context.Context, obj *model.Profile, start *model.Date) ([]*model.Follow, error)
	Followers(ctx context.Context, obj *model.Profile, start *model.Date) ([]*model.Follow, error)
	Posts(ctx context.Context, obj *model.Profile, start *model.Date, newest *bool) ([]*model.Post, error)
	Rooms(ctx context.Context, obj *model.Profile, start *model.Date) ([]*model.RoomFollow, error)
}

type QueryResolver

type QueryResolver interface {
	Tx(ctx context.Context, hash model.Hash) (*model.Tx, error)
	Txs(ctx context.Context, hashes []model.Hash) ([]*model.Tx, error)
	Address(ctx context.Context, address model.Address) (*model.Lock, error)
	Addresses(ctx context.Context, addresses []model.Address) ([]*model.Lock, error)
	Block(ctx context.Context, hash model.Hash) (*model.Block, error)
	BlockNewest(ctx context.Context) (*model.Block, error)
	Blocks(ctx context.Context, newest *bool, start *uint32) ([]*model.Block, error)
	Profiles(ctx context.Context, addresses []model.Address) ([]*model.Profile, error)
	Posts(ctx context.Context, txHashes []model.Hash) ([]*model.Post, error)
	PostsNewest(ctx context.Context, start *model.Date, tx *model.Hash, limit *uint32) ([]*model.Post, error)
	Room(ctx context.Context, name string) (*model.Room, error)
}

type ResolverRoot

type ResolverRoot interface {
	Like() LikeResolver
	Mutation() MutationResolver
	Post() PostResolver
	Profile() ProfileResolver
	Query() QueryResolver
	SetName() SetNameResolver
	SetPic() SetPicResolver
	SetProfile() SetProfileResolver
	Subscription() SubscriptionResolver
}

type SetNameResolver

type SetNameResolver interface {
	Tx(ctx context.Context, obj *model.SetName) (*model.Tx, error)

	Lock(ctx context.Context, obj *model.SetName) (*model.Lock, error)
}

type SetPicResolver

type SetPicResolver interface {
	Tx(ctx context.Context, obj *model.SetPic) (*model.Tx, error)

	Lock(ctx context.Context, obj *model.SetPic) (*model.Lock, error)
}

type SetProfileResolver

type SetProfileResolver interface {
	Tx(ctx context.Context, obj *model.SetProfile) (*model.Tx, error)

	Lock(ctx context.Context, obj *model.SetProfile) (*model.Lock, error)
}

type SubscriptionResolver

type SubscriptionResolver interface {
	Address(ctx context.Context, address model.Address) (<-chan *model.Tx, error)
	Addresses(ctx context.Context, addresses []model.Address) (<-chan *model.Tx, error)
	Blocks(ctx context.Context) (<-chan *model.Block, error)
	Posts(ctx context.Context, hashes []model.Hash) (<-chan *model.Post, error)
	Profiles(ctx context.Context, addresses []model.Address) (<-chan *model.Profile, error)
	Rooms(ctx context.Context, names []string) (<-chan *model.Post, error)
	RoomFollows(ctx context.Context, addresses []model.Address) (<-chan *model.RoomFollow, error)
}

Jump to

Keyboard shortcuts

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