actsock

package module
v0.0.0-...-e6d31dc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 1 Imported by: 3

README

go-actsock

Package actsock implements ActivitySocket, an ActivityPub & ActivityStreams like protocol over a WebSocket, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-actsock

GoDoc

Import

To import package actsock use import code like the following:

import "github.com/reiver/go-actsock"

Installation

To install package actsock do the following:

GOPROXY=direct go get github.com/reiver/go-actsock

Author

Package actsock was written by Charles Iliya Krempeaux

Documentation

Index

Constants

Activities

View Source
const (
	TypeConference = "Conference"
)

Objects

Variables

This section is empty.

Functions

This section is empty.

Types

type Accept

type Accept struct {
	Type json.Const[string] `json:"type" json.value:"Accept"`

	Actor   string `json:"actor,omitempty"` // who did the accepting
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`    // for preview
	Object  any    `json:"object,omitempty"`  // the thing that is being accepted
	Summary string `json:"summary,omitempty"` // for preview
}

func (Accept) String

func (receiver Accept) String() string

type Announce

type Announce struct {
	Type json.Const[string] `json:"type" json.value:"Announce"`

	Actor   string `json:"actor,omitempty"` // who announced it
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"` // for preview
	Object  any    `json:"object,omitempty"`
	Summary string `json:"summary,omitempty"` // for preview
}

func (Announce) String

func (receiver Announce) String() string

type Conference

type Conference struct {
	Type json.Const[string] `json:"type" json.value:"Conference"`

	Actor     string            `json:"actor,omitempty"`
	Closed    string            `json:"closed,omitempty"`
	EndPoints map[string]string `json:"endpoints,omitempty"`
	ID        string            `json:"id,omitempty"`
	Name      string            `json:"name,omitempty"`
	Origin    []string          `json:"origin,omitempty"`
	StartTime string            `json:"startTime,omitempty"`
	Summary   string            `json:"summary,omitempty"`
	To        []string          `json:"to,omitempty"`
}

Conference is an 'Object' of 'type' 'Conference'.

func (Conference) String

func (receiver Conference) String() string

type Create

type Create struct {
	Type json.Const[string] `json:"type" json.value:"Create"`

	Actor   string `json:"actor,omitempty"` // who did the creating (i.e., the creater)
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`    // for preview
	Object  any    `json:"object,omitempty"`  // what was created
	Summary string `json:"summary,omitempty"` // for preview
}

func (Create) String

func (receiver Create) String() string

type Hush

type Hush struct {
	Type json.Const[string] `json:"type" json.value:"Hush"`

	Value bool `json:"@value"`
}

func (Hush) String

func (receiver Hush) String() string

type Invite

type Invite struct {
	Type json.Const[string] `json:"type" json.value:"Invite"`

	Actor   string `json:"actor,omitempty"` // who did the inviting (i.e., the inviter)
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`    // for preview
	Object  any    `json:"object,omitempty"`  // what the inviter invited the invitee to
	Summary string `json:"summary,omitempty"` // for preview
	Target  string `json:"target,omitempty"`  // who was invite (i.e., the invitee)
}

func (Invite) String

func (receiver Invite) String() string

type Join

type Join struct {
	Type json.Const[string] `json:"type" json.value:"Join"`

	Actor   string `json:"actor,omitempty"` // who joined
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`    // for preview
	Object  any    `json:"object,omitempty"`  // what was joined
	Summary string `json:"summary,omitempty"` // for preview
}

func (Join) String

func (receiver Join) String() string

type Leave

type Leave struct {
	Type json.Const[string] `json:"type" json.value:"Leave"`

	Actor   string `json:"actor,omitempty"` // who joined
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`    // for preview
	Object  any    `json:"object,omitempty"`  // what was joined
	Summary string `json:"summary,omitempty"` // for preview
}

func (Leave) String

func (receiver Leave) String() string

type Reject

type Reject struct {
	Type json.Const[string] `json:"type" json.value:"Reject"`

	Actor   string `json:"actor,omitempty"` // who did the rejecting
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`    // for preview
	Object  any    `json:"object,omitempty"`  // the thing that is being rejected
	Summary string `json:"summary,omitempty"` // for preview
}

func (Reject) String

func (receiver Reject) String() string

Jump to

Keyboard shortcuts

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