fanbox

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeFanbox

func NewFakeFanbox(posts map[string]fanboxgo.Post) *fakeFanbox

Types

type CustomFanbox

type CustomFanbox struct {
	Client        fanboxgo.Invoker
	SecurityStore SecurityStore
	// contains filtered or unexported fields
}

func NewFanbox

func NewFanbox(csrfToken, sessionId, userAgent string) (*CustomFanbox, error)

func NewTestFanbox

func NewTestFanbox(client fanboxgo.Invoker) *CustomFanbox

func (CustomFanbox) CreatePost

func (f CustomFanbox) CreatePost() (string, error)

func (CustomFanbox) DeletePost

func (f CustomFanbox) DeletePost(postId string) error

func (CustomFanbox) GetPost

func (f CustomFanbox) GetPost(postId string) (fanboxgo.Post, error)

func (CustomFanbox) GetPosts

func (f CustomFanbox) GetPosts() ([]fanboxgo.Post, error)

func (CustomFanbox) PushPost

func (f CustomFanbox) PushPost(post *fanboxgo.Post) (fanboxgo.Post, error)

type SecurityStore

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

func (SecurityStore) CsrfToken

func (s SecurityStore) CsrfToken(ctx context.Context, operationName string) (fanboxgo.CsrfToken, error)

func (SecurityStore) SessionId

func (s SecurityStore) SessionId(ctx context.Context, operationName string) (fanboxgo.SessionId, error)

Jump to

Keyboard shortcuts

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