controller

package
v0.0.0-...-49025f2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationController

type ConversationController struct {
	Address string
}

func NewConversationController

func NewConversationController(address string) *ConversationController

func (*ConversationController) GetConversations

func (c *ConversationController) GetConversations() ([]*schema.Conversation, error)

func (*ConversationController) SetConversation

func (c *ConversationController) SetConversation(conversations []*schema.Conversation) error

type DealController

type DealController struct {
	RecruiterAddress string
	CreatorAddress   string
}

func NewDealController

func NewDealController(recruiter_address string, creator_address string) *DealController

func (*DealController) GetDeals

func (s *DealController) GetDeals() ([]*schema.Deal, error)

func (*DealController) SetDeal

func (s *DealController) SetDeal(deals []*schema.Deal) error

type DealIndexer

type DealIndexer struct {
	IndexName string
}

type FavoriteController

type FavoriteController struct {
	Address string
}

func NewFavoriteController

func NewFavoriteController(address string) *FavoriteController

func (*FavoriteController) GetFavorites

func (w *FavoriteController) GetFavorites() ([]*schema.Favorite, error)

type JobController

type JobController struct {
	Address string
	Slot    int
}

func NewJobController

func NewJobController(address string, slot int) *JobController

func (*JobController) DeleteJob

func (j *JobController) DeleteJob() error

func (*JobController) GetJob

func (j *JobController) GetJob() (schema.Job, error)

func (*JobController) SetJob

func (j *JobController) SetJob(job *schema.Job) error

type JobIndexer

type JobIndexer struct {
	IndexName string
}

func NewJobIndexer

func NewJobIndexer(index_name string) *JobIndexer

func (*JobIndexer) GetAllJobs

func (j *JobIndexer) GetAllJobs() ([]schema.Job, error)

func (*JobIndexer) GetAllJobsFilter

func (j *JobIndexer) GetAllJobsFilter(filter_field string, filter_value float64) ([]schema.Job, error)

func (*JobIndexer) GetAllJobsLimit

func (j *JobIndexer) GetAllJobsLimit(offset int, size int) ([]schema.Job, error)

func (*JobIndexer) GetJobs

func (j *JobIndexer) GetJobs(address string) ([]schema.Job, error)

type RatingController

type RatingController struct {
	Address string
}

func NewRatingController

func NewRatingController(address string) *RatingController

func (*RatingController) GetRating

func (s *RatingController) GetRating() (string, error)

type RatingIndexer

type RatingIndexer struct {
	IndexName string
}

func NewRatingIndexer

func NewRatingIndexer(index_name string) *RatingIndexer

type SaltController

type SaltController struct {
	Address string
}

func NewSaltController

func NewSaltController(address string) *SaltController

func (*SaltController) AddSalt

func (u *SaltController) AddSalt(salt string) (string, error)

func (*SaltController) DeleteSalt

func (u *SaltController) DeleteSalt() error

func (*SaltController) GetSalt

func (u *SaltController) GetSalt() (string, error)

type SkillController

type SkillController struct {
	Address string
	Slot    int
}

func NewSkillController

func NewSkillController(address string, slot int) *SkillController

func (*SkillController) GetSkill

func (s *SkillController) GetSkill() (schema.Skill, error)

func (*SkillController) SetSkill

func (s *SkillController) SetSkill(skill *schema.Skill) error

type SkillIndexer

type SkillIndexer struct {
	IndexName string
}

func NewSkillIndexer

func NewSkillIndexer(index_name string) *SkillIndexer

func (*SkillIndexer) GetAllSkills

func (s *SkillIndexer) GetAllSkills() ([]schema.Skill, error)

func (*SkillIndexer) GetAllSkillsLimit

func (s *SkillIndexer) GetAllSkillsLimit(offset int, size int) ([]schema.Skill, error)

func (*SkillIndexer) GetPublishedSkills

func (s *SkillIndexer) GetPublishedSkills(address string) ([]schema.Skill, error)

func (*SkillIndexer) GetSkills

func (s *SkillIndexer) GetSkills(address string) ([]schema.Skill, error)

type TagController

type TagController struct {
}

func NewTagController

func NewTagController() *TagController

func (*TagController) GetTags

func (t *TagController) GetTags() (schema.Tags, error)

func (*TagController) SetTags

func (t *TagController) SetTags(tags *schema.Tags) error

type TransactionController

type TransactionController struct {
	Hash string
}

func NewTransactionController

func NewTransactionController(hash string) *TransactionController

func (*TransactionController) AddTransaction

func (t *TransactionController) AddTransaction(hash string) error

func (*TransactionController) GetTransaction

func (t *TransactionController) GetTransaction() (string, error)

type UserController

type UserController struct {
	Address string
}

func NewUserController

func NewUserController(address string) *UserController

func (*UserController) GetUser

func (u *UserController) GetUser() (schema.User, error)

func (*UserController) SetUser

func (u *UserController) SetUser(user *schema.User) error

type UserControllerInterface

type UserControllerInterface interface {
	GetUser() (schema.User, error)
}

type WatchlistController

type WatchlistController struct {
	Address string
}

func NewWatchlistController

func NewWatchlistController(address string) *WatchlistController

func (*WatchlistController) GetWatchlist

func (w *WatchlistController) GetWatchlist() ([]*schema.Watchlist, error)

type WhitelistController

type WhitelistController struct {
}

func NewWhitelistController

func NewWhitelistController() *WhitelistController

func (*WhitelistController) GetWhitelist

func (w *WhitelistController) GetWhitelist() []string

Jump to

Keyboard shortcuts

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