projectmemberservice

package
v0.13.1-0...-264b242 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package projectmemberservice is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProjectMembersServiceHandler

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

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

func RegisterProjectMembersServiceHandlerClient

func RegisterProjectMembersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectMembersServiceClient) error

RegisterProjectMembersServiceHandlerClient registers the http handlers for service ProjectMembersService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectMembersServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectMembersServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProjectMembersServiceClient" to call the correct interceptors.

func RegisterProjectMembersServiceHandlerFromEndpoint

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

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

func RegisterProjectMembersServiceHandlerServer

func RegisterProjectMembersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectMembersServiceServer) error

RegisterProjectMembersServiceHandlerServer registers the http handlers for service ProjectMembersService to "mux". UnaryRPC :call ProjectMembersServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterProjectMembersServiceServer

func RegisterProjectMembersServiceServer(s *grpc.Server, srv ProjectMembersServiceServer)

Types

type ListProjectMembersServiceRequest

type ListProjectMembersServiceRequest struct {
	//Partial representation, fields=id,name
	Fields string `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"`
	//*
	// Sort fields, comma separated list for the ordering
	// use **?filter=-display_name** with a dash to sort descending
	// use **?filter=display_name** to sort ascending
	OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	//Filter
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	//Page number for paginated content. Tipp: follow the HATEOAS next, prev,...
	Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
	//Number of elements to return per page
	Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	//https://cloud.google.com/apis/design/design_patterns#resource_view
	View string `protobuf:"bytes,8,opt,name=view,proto3" json:"view,omitempty"`
	//Query term to search a member
	Q                    string   `protobuf:"bytes,11,opt,name=q,proto3" json:"q,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListProjectMembersServiceRequest) Descriptor

func (*ListProjectMembersServiceRequest) Descriptor() ([]byte, []int)

func (*ListProjectMembersServiceRequest) GetFields

func (*ListProjectMembersServiceRequest) GetFilter

func (*ListProjectMembersServiceRequest) GetLimit

func (*ListProjectMembersServiceRequest) GetOrderBy

func (m *ListProjectMembersServiceRequest) GetOrderBy() string

func (*ListProjectMembersServiceRequest) GetPage

func (*ListProjectMembersServiceRequest) GetQ

func (*ListProjectMembersServiceRequest) GetView

func (*ListProjectMembersServiceRequest) ProtoMessage

func (*ListProjectMembersServiceRequest) ProtoMessage()

func (*ListProjectMembersServiceRequest) Reset

func (*ListProjectMembersServiceRequest) String

func (*ListProjectMembersServiceRequest) XXX_DiscardUnknown

func (m *ListProjectMembersServiceRequest) XXX_DiscardUnknown()

func (*ListProjectMembersServiceRequest) XXX_Marshal

func (m *ListProjectMembersServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProjectMembersServiceRequest) XXX_Merge

func (*ListProjectMembersServiceRequest) XXX_Size

func (m *ListProjectMembersServiceRequest) XXX_Size() int

func (*ListProjectMembersServiceRequest) XXX_Unmarshal

func (m *ListProjectMembersServiceRequest) XXX_Unmarshal(b []byte) error

type ProjectMembersServiceClient

type ProjectMembersServiceClient interface {
	// Get a collection with PersonEntities
	ListMembers(ctx context.Context, in *ListProjectMembersServiceRequest, opts ...grpc.CallOption) (*person.PersonCollection, error)
	// Custom method to unsubscribe a member, complete PersonEntity is expected
	UnsubscribeProjectMembersService(ctx context.Context, in *UnsubscribeProjectMembersServiceRequest, opts ...grpc.CallOption) (*person.PersonCollection, error)
}

ProjectMembersServiceClient is the client API for ProjectMembersService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewProjectMembersServiceClient

func NewProjectMembersServiceClient(cc *grpc.ClientConn) ProjectMembersServiceClient

type ProjectMembersServiceServer

type ProjectMembersServiceServer interface {
	// Get a collection with PersonEntities
	ListMembers(context.Context, *ListProjectMembersServiceRequest) (*person.PersonCollection, error)
	// Custom method to unsubscribe a member, complete PersonEntity is expected
	UnsubscribeProjectMembersService(context.Context, *UnsubscribeProjectMembersServiceRequest) (*person.PersonCollection, error)
}

ProjectMembersServiceServer is the server API for ProjectMembersService service.

type UnimplementedProjectMembersServiceServer

type UnimplementedProjectMembersServiceServer struct {
}

UnimplementedProjectMembersServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProjectMembersServiceServer) ListMembers

func (*UnimplementedProjectMembersServiceServer) UnsubscribeProjectMembersService

type UnsubscribeProjectMembersServiceRequest

type UnsubscribeProjectMembersServiceRequest struct {
	Prj                  string               `protobuf:"bytes,1,opt,name=prj,proto3" json:"prj,omitempty"`
	Prs                  string               `protobuf:"bytes,2,opt,name=prs,proto3" json:"prs,omitempty"`
	Data                 *person.PersonEntity `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*UnsubscribeProjectMembersServiceRequest) Descriptor

func (*UnsubscribeProjectMembersServiceRequest) Descriptor() ([]byte, []int)

func (*UnsubscribeProjectMembersServiceRequest) GetData

func (*UnsubscribeProjectMembersServiceRequest) GetPrj

func (*UnsubscribeProjectMembersServiceRequest) GetPrs

func (*UnsubscribeProjectMembersServiceRequest) ProtoMessage

func (*UnsubscribeProjectMembersServiceRequest) Reset

func (*UnsubscribeProjectMembersServiceRequest) String

func (*UnsubscribeProjectMembersServiceRequest) XXX_DiscardUnknown

func (m *UnsubscribeProjectMembersServiceRequest) XXX_DiscardUnknown()

func (*UnsubscribeProjectMembersServiceRequest) XXX_Marshal

func (m *UnsubscribeProjectMembersServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnsubscribeProjectMembersServiceRequest) XXX_Merge

func (*UnsubscribeProjectMembersServiceRequest) XXX_Size

func (*UnsubscribeProjectMembersServiceRequest) XXX_Unmarshal

func (m *UnsubscribeProjectMembersServiceRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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