slackeventsrcsvc

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventTypes = []string{}

TODO

Functions

This section is empty.

Types

type Config

type Config struct {
	EventSourceID apieventsrc.EventSourceID `envconfig:"ID" json:"event_source_id"`
	SocketMode    bool                      `envconfig:"SOCKET_MODE" json:"socket_mode"`
	Debug         bool                      `envconfig:"DEBUG" json:"debug"`
	OAuthEnabled  bool                      `envconfig:"OAUTH_ENABLED" json:"oauth_enabled"`
	ClientID      string                    `envconfig:"CLIENT_ID" json:"client_id"`
	ClientSecret  string                    `envconfig:"CLIENT_SECRET" json:"client_secret"`
	SigningSecret string                    `envconfig:"SIGNING_SECRET" json:"signing_secret"`
	AppToken      string                    `envconfig:"APP_TOKEN" json:"app_token"`
	BotToken      string                    `envconfig:"BOT_TOKEN" json:"bot_token"`
}

type Svc

type Svc struct {
	pb.UnimplementedSlackEventSourceServer

	Config Config

	Events       *events.Events
	EventSources eventsrcsstore.Store
	CredsStore   *credsstore.Store

	L L.Nullable
	// contains filtered or unexported fields
}

func (*Svc) Add

func (s *Svc) Add(ctx context.Context, pid apiproject.ProjectID, name, tid string) error

func (*Svc) Bind

func (s *Svc) Bind(ctx context.Context, req *pb.BindRequest) (*pb.BindResponse, error)

func (*Svc) Remove

func (*Svc) Start

func (s *Svc) Start(ctx context.Context, srv *grpc.Server, gw *runtime.ServeMux, r *mux.Router) error

func (*Svc) Unbind

func (s *Svc) Unbind(ctx context.Context, req *pb.UnbindRequest) (*pb.UnbindResponse, error)

Jump to

Keyboard shortcuts

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