mutation_v1_service

package
v0.0.0-...-02c3ccb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package mutation_v1_service is a generated protocol buffer package.

Mutation Service

The Key Transparency mutation server service consists of APIs to fetch mutations.

It is generated from these files:

mutation_v1_service.proto

It has these top-level messages:

Package mutation_v1_service is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMutationServiceHandler

func RegisterMutationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMutationServiceHandler registers the http handlers for service MutationService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMutationServiceHandlerFromEndpoint

func RegisterMutationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMutationServiceHandlerFromEndpoint is same as RegisterMutationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMutationServiceServer

func RegisterMutationServiceServer(s *grpc.Server, srv MutationServiceServer)

Types

type MutationServiceClient

type MutationServiceClient interface {
	// GetMutations returns a list of mutations in a specific epoch.
	//
	// Returns a list of mutations and their inclusion proofs along with the epoch
	// signed map root.
	GetMutations(ctx context.Context, in *keytransparency_v1_types.GetMutationsRequest, opts ...grpc.CallOption) (*keytransparency_v1_types.GetMutationsResponse, error)
	// GetMutationsStream is a streaming API similar to GetMutations.
	//
	// Returns a list of mutations and their inclusion proofs along with the epoch
	// signed map root.
	GetMutationsStream(ctx context.Context, in *keytransparency_v1_types.GetMutationsRequest, opts ...grpc.CallOption) (MutationService_GetMutationsStreamClient, error)
}

func NewMutationServiceClient

func NewMutationServiceClient(cc *grpc.ClientConn) MutationServiceClient

type MutationServiceServer

type MutationServiceServer interface {
	// GetMutations returns a list of mutations in a specific epoch.
	//
	// Returns a list of mutations and their inclusion proofs along with the epoch
	// signed map root.
	GetMutations(context.Context, *keytransparency_v1_types.GetMutationsRequest) (*keytransparency_v1_types.GetMutationsResponse, error)
	// GetMutationsStream is a streaming API similar to GetMutations.
	//
	// Returns a list of mutations and their inclusion proofs along with the epoch
	// signed map root.
	GetMutationsStream(*keytransparency_v1_types.GetMutationsRequest, MutationService_GetMutationsStreamServer) error
}

type MutationService_GetMutationsStreamClient

type MutationService_GetMutationsStreamClient interface {
	Recv() (*keytransparency_v1_types.GetMutationsResponse, error)
	grpc.ClientStream
}

type MutationService_GetMutationsStreamServer

type MutationService_GetMutationsStreamServer interface {
	Send(*keytransparency_v1_types.GetMutationsResponse) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL