Categorygithub.com/phisuite/data.go
modulepackage
0.0.3
Repository: https://github.com/phisuite/data.go.git
Documentation: pkg.go.dev

# README

Phi Suite Data.go

Homepagehttps://phisuite.com
GitHubhttps://github.com/phisuite

Overview

This project contains the Go module to create the Data API server & client.
For more details, see Phi Suite Data.

Installation

go get github.com/phisuite/data.go

Creating the server

package main
import "github.com/phisuite/data.go"

type eventAPIServer struct { ... }

func (s *eventAPIServer) Publish(ctx context.Context, req *data.Event) (*data.Event, error) {
    ... 
}

lis, err := net.Listen("tcp", ":50051")
grpcServer := grpc.NewServer()
data.RegisterEventAPIServer(grpcServer, &eventAPIServer{})
grpcServer.Serve(lis)

For more details, see gRPC Basics - Go: Creating the server.

Creating the client

package main
import "github.com/phisuite/data.go"

conn, err := grpc.Dial(*serverAddr)
defer conn.Close()

client := data.NewEventAPIClient(conn)
event := client.Publish(context.Background(), &data.Event{ ... })

For more details, see gRPC Basics - Go: Creating the client.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnimplementedEntityReadAPIServer can be embedded to have forward compatible implementations.
UnimplementedEntityWriteAPIServer can be embedded to have forward compatible implementations.
UnimplementedEventAPIServer can be embedded to have forward compatible implementations.
UnimplementedEventReadAPIServer can be embedded to have forward compatible implementations.
UnimplementedEventWriteAPIServer can be embedded to have forward compatible implementations.
UnimplementedProcessAPIServer can be embedded to have forward compatible implementations.
UnimplementedProcessReadAPIServer can be embedded to have forward compatible implementations.
UnimplementedProcessWriteAPIServer can be embedded to have forward compatible implementations.

# Interfaces

No description provided by the author
No description provided by the author
EntityReadAPIClient is the client API for EntityReadAPI service.
EntityReadAPIServer is the server API for EntityReadAPI service.
EntityWriteAPIClient is the client API for EntityWriteAPI service.
EntityWriteAPIServer is the server API for EntityWriteAPI service.
EventAPIClient is the client API for EventAPI service.
EventAPIServer is the server API for EventAPI service.
No description provided by the author
No description provided by the author
EventReadAPIClient is the client API for EventReadAPI service.
EventReadAPIServer is the server API for EventReadAPI service.
EventWriteAPIClient is the client API for EventWriteAPI service.
EventWriteAPIServer is the server API for EventWriteAPI service.
No description provided by the author
No description provided by the author
ProcessAPIClient is the client API for ProcessAPI service.
ProcessAPIServer is the server API for ProcessAPI service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProcessReadAPIClient is the client API for ProcessReadAPI service.
ProcessReadAPIServer is the server API for ProcessReadAPI service.
ProcessWriteAPIClient is the client API for ProcessWriteAPI service.
ProcessWriteAPIServer is the server API for ProcessWriteAPI service.