model

package
v0.0.0-...-b370a20 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ChangePasswordInput

type ChangePasswordInput struct {
	NewPassword string `json:"newPassword"`
}

type GetUserResponse

type GetUserResponse struct {
	Email          string   `json:"email"`
	Type           UserType `json:"type"`
	BanAddress     *string  `json:"banAddress"`
	ServiceName    *string  `json:"serviceName"`
	ServiceWebsite *string  `json:"serviceWebsite"`
	EmailVerified  bool     `json:"emailVerified"`
	CanRequestWork bool     `json:"canRequestWork"`
}

type LoginInput

type LoginInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token          string   `json:"token"`
	Email          string   `json:"email"`
	Type           UserType `json:"type"`
	BanAddress     *string  `json:"banAddress"`
	ServiceName    *string  `json:"serviceName"`
	ServiceWebsite *string  `json:"serviceWebsite"`
	EmailVerified  bool     `json:"emailVerified"`
}

type RefreshTokenInput

type RefreshTokenInput struct {
	Token string `json:"token"`
}

type ResendConfirmationEmailInput

type ResendConfirmationEmailInput struct {
	Email string `json:"email"`
}

type ResetPasswordInput

type ResetPasswordInput struct {
	Email string `json:"email"`
}

type Stats

type Stats struct {
	ConnectedWorkers       int                 `json:"connectedWorkers"`
	TotalPaidBanano        string              `json:"totalPaidBanano"`
	RegisteredServiceCount int                 `json:"registeredServiceCount"`
	Top10                  []*StatsUserType    `json:"top10"`
	Services               []*StatsServiceType `json:"services"`
}

type StatsServiceType

type StatsServiceType struct {
	Name     string `json:"name"`
	Website  string `json:"website"`
	Requests int    `json:"requests"`
}

type StatsUserType

type StatsUserType struct {
	BanAddress      string `json:"banAddress"`
	TotalPaidBanano string `json:"totalPaidBanano"`
}

type User

type User struct {
	ID         string   `json:"id"`
	Email      string   `json:"email"`
	CreatedAt  string   `json:"createdAt"`
	UpdatedAt  string   `json:"updatedAt"`
	Type       UserType `json:"type"`
	BanAddress *string  `json:"banAddress"`
}

type UserInput

type UserInput struct {
	Email          string   `json:"email"`
	Password       string   `json:"password"`
	Type           UserType `json:"type"`
	BanAddress     *string  `json:"banAddress"`
	ServiceName    *string  `json:"serviceName"`
	ServiceWebsite *string  `json:"serviceWebsite"`
}

type UserType

type UserType string
const (
	UserTypeProvider  UserType = "PROVIDER"
	UserTypeRequester UserType = "REQUESTER"
)

func (UserType) IsValid

func (e UserType) IsValid() bool

func (UserType) MarshalGQL

func (e UserType) MarshalGQL(w io.Writer)

func (UserType) String

func (e UserType) String() string

func (*UserType) UnmarshalGQL

func (e *UserType) UnmarshalGQL(v interface{}) error

type VerifyEmailInput

type VerifyEmailInput struct {
	Email string `json:"email"`
	Token string `json:"token"`
}

type VerifyServiceInput

type VerifyServiceInput struct {
	Email string `json:"email"`
	Token string `json:"token"`
}

type WorkGenerateInput

type WorkGenerateInput struct {
	Hash                 string `json:"hash"`
	DifficultyMultiplier int    `json:"difficultyMultiplier"`
	BlockAward           *bool  `json:"blockAward"`
}

Jump to

Keyboard shortcuts

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