api

package
v0.0.0-...-b02009c Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserTypeId    = 1
	ChannelTypeId = 2
	MessageTypeId = 3
)

Variables

This section is empty.

Functions

func DeserializeNodeId

func DeserializeNodeId(id string) (int, model.Id)

func SerializeNodeId

func SerializeNodeId(typeId int, id model.Id) string

Types

type API

type API struct {
	App *app.App
	// contains filtered or unexported fields
}

func (*API) ServeGraphQL

func (api *API) ServeGraphQL(w http.ResponseWriter, r *http.Request)

func (*API) ServeGraphQLWS

func (api *API) ServeGraphQLWS(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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