Documentation ¶
Index ¶
- type Actor
- type Address
- type AddressInput
- type Auth
- type Bool
- type DateTime
- type Event
- type EventInput
- type ID
- type Int
- type Login
- type Media
- type MediaInput
- type MediaInputObj
- type Member
- type MobilizonClient
- func (c *MobilizonClient) Authorize(email, pass string) (*User, error)
- func (c MobilizonClient) CreateEvent(e *EventInput, organizer Actor) (*Event, error)
- func (c MobilizonClient) CreateEventWithImage(e *EventInput, organizer Actor, picture io.Reader) (*Event, error)
- func (c MobilizonClient) GetEvent(uuid UUID) (*Event, error)
- func (c MobilizonClient) GetEvents() ([]*Event, error)
- func (c MobilizonClient) UploadMedia(fileContent io.Reader, name string) (*Media, error)
- type Person
- type Point
- type String
- type UUID
- type Upload
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressInput ¶
type AddressInput struct {
Address
}
type DateTime ¶
func (DateTime) MarshalJSON ¶
type Event ¶
type Event struct { UUID UUID ID ID Title String Description String PhysicalAddress Address BeginsOn time.Time EndsOn time.Time Picture Media }
func (Event) AsInput ¶
func (e Event) AsInput() *EventInput
type EventInput ¶
type EventInput struct { Event Picture MediaInput PhysicalAddress AddressInput }
type MediaInput ¶
type MediaInput struct {
Media MediaInputObj
}
type MobilizonClient ¶
type MobilizonClient struct {
// contains filtered or unexported fields
}
func NewMobilizonClient ¶
func NewMobilizonClient(host string) *MobilizonClient
func (*MobilizonClient) Authorize ¶
func (c *MobilizonClient) Authorize(email, pass string) (*User, error)
func (MobilizonClient) CreateEvent ¶
func (c MobilizonClient) CreateEvent(e *EventInput, organizer Actor) (*Event, error)
func (MobilizonClient) CreateEventWithImage ¶
func (c MobilizonClient) CreateEventWithImage(e *EventInput, organizer Actor, picture io.Reader) (*Event, error)
CreateEventWithImage doesn't use the standard graphql client, but does a multipart/form-data request to upload the picture.
func (MobilizonClient) GetEvents ¶
func (c MobilizonClient) GetEvents() ([]*Event, error)
func (MobilizonClient) UploadMedia ¶
Click to show internal directories.
Click to hide internal directories.