fbauth

package
v0.0.0-...-d1826b6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShouldDisableNBTConstructor = true

const authServer="wss://api.fastbuilder.pro:2053/"

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Action                                        string `json:"action"`
	ServerCode                                    string `json:"serverCode"`
	ServerPassword                                string `json:"serverPassword"`
	Key                                           string `json:"publicKey"`
	FBToken                                       string
	FBVersion                                     string
	IGNOREUPDATE_PLEASEMAKESUREYOUKNOWWHATITMEANS bool
}

type Client

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

func CreateClient

func CreateClient(world_chat_channel chan []string) *Client

func (*Client) Auth

func (client *Client) Auth(serverCode string, serverPassword string, key string, fbtoken string, fbversion string) (string, int, error)

func (*Client) CanSendMessage

func (client *Client) CanSendMessage() bool

func (*Client) GetToken

func (client *Client) GetToken(username string, password string) string

func (*Client) SendMessage

func (client *Client) SendMessage(data []byte)

func (*Client) ShouldRespondUser

func (client *Client) ShouldRespondUser() string

func (*Client) TransferData

func (client *Client) TransferData(content string, uid string) string

func (*Client) WorldChat

func (client *Client) WorldChat(message string)

type FEncRequest

type FEncRequest struct {
	Action  string `json:"action"`
	Content string `json:"content"`
	Uid     string `json:"uid"`
}

type FTokenRequest

type FTokenRequest struct {
	Action   string `json:"action"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type RespondRequest

type RespondRequest struct {
	Action string `json:"action"`
}

type WorldChatRequest

type WorldChatRequest struct {
	Category string `json:"category"`
	Action   string `json:"action"`
	Message  string `json:"message"`
}

Jump to

Keyboard shortcuts

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