Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (25 loc) · 677 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 677 Bytes

Generate bindings

To regenerate the golang bindings run

make clean generate

Usage examples

Here is an example on how to integrate dpservice-go bindings in your developed applications.

package main

import (
    "context"
    dpdkproto "github.com/ironcore-dev/dpservice-go/proto"
    "google.golang.org/grpc"
    "google.golang.org/grpc/credentials/insecure"
)

func main() {
    ctx := context.Background()
    conn, err := grpc.DialContext(ctx, "127.0.0.1", grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithBlock())
    if err != nil {
    panic("aaaahh")
    }
    client := dpdkproto.NewDPDKironcoreClient(conn)
    ...
}