Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(examples): update the grpc unix socket name #69

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ imports(

func main() {
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/output_unix_socket/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func main() {
//Set up a connection to the server.
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
if err != nil {
log.Fatalf("unable to connect: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion examples/output_unix_socket_bidi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func printOutput(res *outputs.Response) error {
func main() {
//Set up a connection to the server.
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
if err != nil {
log.Fatalf("unable to connect: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion examples/version_unix_socket/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func main() {
// Set up a connection to the server.
c, err := client.NewForConfig(context.Background(), &client.Config{
UnixSocketPath: "unix:///var/run/falco.sock",
UnixSocketPath: "unix:///run/falco/falco.sock",
})
if err != nil {
log.Fatalf("unable to create a Falco client: %v", err)
Expand Down
Loading