Skip to content

Go library for interacting with Lokal Client REST API

License

Notifications You must be signed in to change notification settings

lokal-so/lokal-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lokal Go

Library to interact with Lokal Client REST API

screenshot of Lokal Go

lkl, err := lokal.NewDefault()
if err != nil {
    panic(err)
}

tun, err := lkl.NewTunnel().
    SetName("Gin test").
    SetTunnelType(lokal.TunnelTypeHTTP).
    SetPublicAddress("mybackend2.k.lokal-so.site").
    SetLANAddress("backend.local").
    SetLocalAddress(address).
    ShowStartupBanner().
    IgnoreDuplicate().
    Create()
if err != nil {
    panic(err)
}

// fmt.Println(tun.GetPublicAddress())

About

Go library for interacting with Lokal Client REST API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages