Documentation
¶
Index ¶
- func Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) error
- func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) error
- func GetKey(ctx context.ServiceContext, client *clients.GQLClient, options *GetKeyOptions) ([]byte, error)
- type CreateOptions
- type GetKeyOptions
- type Membership
- type UpdateInviteLimitOptions
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) error
Create a new membership
func CreateWithUserID ¶
func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) error
Create a new membership
func GetKey ¶
func GetKey(ctx context.ServiceContext, client *clients.GQLClient, options *GetKeyOptions) ([]byte, error)
Get a membership by ID
Types ¶
type CreateOptions ¶
type GetKeyOptions ¶
type Membership ¶
type Membership struct {
ID string `json:"id,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
UserID string `json:"user_id,omitempty"`
OrgID string `json:"org_id,omitempty"`
RoleID string `json:"role_id,omitempty"`
Key string `json:"key,omitempty"`
}
func Get ¶
func Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Membership, error)
Get a membership by ID
func (*Membership) Marshal ¶
func (w *Membership) Marshal() ([]byte, error)
func (*Membership) Unmarshal ¶
func (w *Membership) Unmarshal(data []byte) error
type UpdateOptions ¶
type UpdateOptions struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.