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

# README

Phi Suite Schema.go

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

Overview

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

Installation

go get github.com/phisuite/schema.go

Creating the server

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

type eventAPIServer struct { ... }

func (s *eventAPIServer) Get(ctx context.Context, req *schema.Options) (*schema.Event, error) {
    ... 
}

lis, err := net.Listen("tcp", ":50051")
grpcServer := grpc.NewServer()
schema.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/schema.go"

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

client := schema.NewEventAPIClient(conn)
event := client.Get(context.Background(), &schema.Options{ ... })

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

# Constants

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

Enum value maps for Field_Category.
Enum value maps for Field_Category.
Enum value maps for Field_Type.
Enum value maps for Field_Type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum value maps for Status.
Enum value maps for Status.

# 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
UnimplementedEntityReadAPIServer can be embedded to have forward compatible implementations.
UnimplementedEntityWriteAPIServer 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.
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.
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
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.

# Type aliases

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