notify

package
v0.0.0-...-564de18 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() []*cli.CommandInfo

Types

type Options

type Options struct {
	JwtSecret     string
	SessionCookie string
}

func NewOptions

func NewOptions() *Options

func (*Options) Bind

func (o *Options) Bind() *Options

func (*Options) BindWithPrefix

func (o *Options) BindWithPrefix(prefix string) *Options

func (*Options) Init

func (o *Options) Init() *Options

type Server

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

Server implements notify.Notify

func New

func New(ctx context.Context, options *Options) (*Server, error)

func (*Server) Auth

func (svc *Server) Auth(ctx context.Context, r *rpc.AuthRequest) (*rpc.AuthResponse, error)

Auth checks if user can be authenticated

func (*Server) Shutdown

func (*Server) Shutdown()

Shutdown is a cleanup hook after SIGTERM

func (*Server) Start

func (*Server) Start(_ context.Context) error

Start is a start hook after flags parsing

Jump to

Keyboard shortcuts

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