server

package
v0.0.0-...-d619c85 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, network string, address string, name string, healthServer *HealthServer, infoServer *InfoServer, contributionsServer *ContributionsServer, contributorsServer *ContributorsServer, readMeServer *ReadMeServer) error

func RunInProcessGateway

func RunInProcessGateway(ctx context.Context, addr string, name string, healthServer *HealthServer, infoServer *InfoServer, contributionsServer *ContributionsServer, contributorsServer *ContributorsServer, readMeServer *ReadMeServer, opts ...runtime.ServeMuxOption) error

Types

type ContributionsServer

type ContributionsServer struct {
	CreateContributionsEndpoint contributions.Create
	ReadContributionsEndpoint   contributions.Read
	UpdateContributionsEndpoint contributions.Update
	ListContributionsEndpoint   contributions.List
}

func NewContributionsServer

func NewContributionsServer(rw domain.ExploreApi) *ContributionsServer

func (*ContributionsServer) CreateContributions

func (*ContributionsServer) ListContributions

func (*ContributionsServer) ReadContributions

func (*ContributionsServer) UpdateContributions

type ContributorsServer

type ContributorsServer struct {
	ReadContributorsEndpoint   contributors.Read
	ListContributorsEndpoint   contributors.List
	CreateContributorsEndpoint contributors.Create
	UpdateContributorsEndpoint contributors.Update
}

func NewContributorsServer

func NewContributorsServer(rw domain.ExploreApi) *ContributorsServer

func (*ContributorsServer) CreateContributors

func (*ContributorsServer) ListContributors

func (*ContributorsServer) ReadContributors

func (*ContributorsServer) UpdateContributors

type HealthServer

type HealthServer struct {
	HealthEndpoint health.Read
}

func NewHealthServer

func NewHealthServer() *HealthServer

func (*HealthServer) ReadHealth

func (s *HealthServer) ReadHealth(ctx context.Context, req *pb.HealthRequest) (*pb.HealthResponse, error)

type InfoServer

type InfoServer struct {
	CreateInfoEndpoint info.Create
	ReadInfoEndpoint   info.Read
	UpdateInfoEndpoint info.Update
	ListInfoEndpoint   info.List
}

func NewInfoServer

func NewInfoServer(rw domain.ExploreApi) *InfoServer

func (*InfoServer) CreateInfo

func (*InfoServer) ListInfo

func (s *InfoServer) ListInfo(ctx context.Context, req *pb.ListInfoRequest) (*pb.ListInfoResponse, error)

func (*InfoServer) ReadInfo

func (s *InfoServer) ReadInfo(ctx context.Context, req *pb.ReadInfoRequest) (*pb.ReadInfoResponse, error)

func (*InfoServer) UpdateInfo

type ReadMeServer

type ReadMeServer struct {
	CreateReadMeEndpoint readme.Create
	ReadReadMeEndpoint   readme.Read
	UpdateReadMeEndpoint readme.Update
	ListReadMeEndpoint   readme.List
}

func NewReadMeServer

func NewReadMeServer(rw domain.ExploreApi) *ReadMeServer

func (*ReadMeServer) CreateReadMe

func (*ReadMeServer) ListReadMe

func (*ReadMeServer) ReadReadMe

func (*ReadMeServer) UpdateReadMe

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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