group

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(p groupParams) *Handler

func (*Handler) AddMember

AddUser implements groupconnect.ServiceHandler

func (*Handler) Build

func (h *Handler) Build(opts ...connect.HandlerOption) (string, http.Handler)

func (*Handler) Create

Create inserts a new group in the database.

func (*Handler) Delete

Delete removes the group from the database as well in all users.

func (*Handler) Get

Get fetches the requested group from the database.

func (*Handler) List

List returns a list of groups between "from" and "to".

func (*Handler) ListGroupsForUser

GetGroups implements groupconnect.ServiceHandler

func (*Handler) ListMembers

GetMembers implements groupconnect.ServiceHandler

func (*Handler) RemoveMember

RemoveUser implements groupconnect.ServiceHandler

func (*Handler) ServiceName

func (h *Handler) ServiceName() string

func (*Handler) Update

Update the group information.

Jump to

Keyboard shortcuts

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