Documentation ¶
Index ¶
- Variables
- type Config
- type Svc
- func (s *Svc) Add(ctx context.Context, pid apiproject.ProjectID, name, tid string) error
- func (s *Svc) Bind(ctx context.Context, req *pb.BindRequest) (*pb.BindResponse, error)
- func (s *Svc) Remove(context.Context, apiproject.ProjectID, string) error
- func (s *Svc) Start(ctx context.Context, srv *grpc.Server, gw *runtime.ServeMux, r *mux.Router) error
- func (s *Svc) Unbind(ctx context.Context, req *pb.UnbindRequest) (*pb.UnbindResponse, error)
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) Bind ¶
func (s *Svc) Bind(ctx context.Context, req *pb.BindRequest) (*pb.BindResponse, error)
func (*Svc) Unbind ¶
func (s *Svc) Unbind(ctx context.Context, req *pb.UnbindRequest) (*pb.UnbindResponse, error)
Click to show internal directories.
Click to hide internal directories.