sirchat

module
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT

README

Sirchat is Sirclo Chat APP

Sirchat is a Golang Framework or plugin to build Sirclo Chat Apps in a flash with the latest platform features. Sirchat can customize the order and appearance of information and guide users through your apps capabilities by initial your blocks, updating, composing, and stacking blocks.

Read the documentation to explore the basic and advanced concepts of Sirchat for Golang.

Setup

go install github.com/sirclo-solution/sirchat

or

go get -u github.com/sirclo-solution/sirchat

Initialization

Create an app by calling the constructor, which is a top-level export.

app := apps.NewApps(apps.AppConfig{
    AppSecret: SECRET_KEY,
})

// Example Command
app.Command("/exampleOne", commandHandler func(c context.Context) (interface{}, error){
    /* Process logic here */
})

// start service
app.Start(apps.AppServerConfig{
    Port:    "8080",
})

Example

See a more complete example of using the block kit here

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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