cli

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 12 Imported by: 0

README

pesakit

pesakit command line tool


pesakit [push|disburse]--phone=076XXXXXX --amount=1000 --description=testing --id=Randomguy00pu  

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AirtelCallbackHandler

func AirtelCallbackHandler() airtel.PushCallbackFunc

func MpesaCallbackHandler

func MpesaCallbackHandler() mpesa.PushCallbackFunc

func TigoCallbackHandler

func TigoCallbackHandler() tigo.CallbackHandlerFunc

Types

type App

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

func New

func New(httpApiClient *pesakit.Client) *App

func (*App) Run

func (app *App) Run(args []string) error

type CallbackServer

type CallbackServer struct {
	Port    string
	Handler http.HandlerFunc
	// contains filtered or unexported fields
}

func NewCallbackServer

func NewCallbackServer(port, path string, handler http.HandlerFunc) *CallbackServer

Directories

Path Synopsis
pkg
env

Jump to

Keyboard shortcuts

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